aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-31 09:55:41 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-31 09:55:41 -0400
commit937362b5521fe501d3fb060c5c73e6ae18cc0826 (patch)
treef9324cc1d78072bd08c71deaf84a5a2d9fc6f3cb /rootston
parent6eb72a1ae52de3080d6bf65c19d749f56228aaf9 (diff)
FIx crash on touch down
Diffstat (limited to 'rootston')
-rw-r--r--rootston/desktop.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index c2e424cf..ab16ed3d 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -684,7 +684,9 @@ struct wlr_surface *desktop_surface_at(struct roots_desktop *desktop,
wlr_output_layout_output_at(desktop->layout, lx, ly);
struct roots_output *roots_output = NULL;
double ox = lx, oy = ly;
- *view = NULL;
+ if (view) {
+ *view = NULL;
+ }
if (wlr_output) {
roots_output = wlr_output->data;