aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
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;