From 937362b5521fe501d3fb060c5c73e6ae18cc0826 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 31 Mar 2018 09:55:41 -0400 Subject: [PATCH] FIx crash on touch down --- rootston/desktop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;