aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 96feb47d..8f44eeae 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -85,6 +85,10 @@ static struct sway_node *node_at_coords(
85 return NULL; 85 return NULL;
86 } 86 }
87 struct sway_output *output = wlr_output->data; 87 struct sway_output *output = wlr_output->data;
88 if (!output) {
89 // output is being destroyed
90 return NULL;
91 }
88 double ox = lx, oy = ly; 92 double ox = lx, oy = ly;
89 wlr_output_layout_output_coords(root->output_layout, wlr_output, &ox, &oy); 93 wlr_output_layout_output_coords(root->output_layout, wlr_output, &ox, &oy);
90 94