summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-24 14:19:08 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-24 14:19:08 -0600
commitcb4265ac8c48faeac385b038b59ac53a736d142d (patch)
tree8c16d9a27f6e576a41be1ed9eb9956b627a71c62
parenta95338ca43c7b979ef81fb9d6b0c561beda93be2 (diff)
check `m` in commitlayersurfacenotify()
-rw-r--r--dwl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 1bee09c..529dbf8 100644
--- a/dwl.c
+++ b/dwl.c
@@ -755,9 +755,8 @@ commitlayersurfacenotify(struct wl_listener *listener, void *data)
wlr_scene_node_reparent(layersurface->scene,
layers[wlr_layer_surface->current.layer]);
- if (!wlr_output)
+ if (!wlr_output || !(m = wlr_output->data))
return;
- m = wlr_output->data;
if (layers[wlr_layer_surface->current.layer] != layersurface->scene) {
wl_list_remove(&layersurface->link);