summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-07 23:54:57 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-07 23:54:57 -0500
commitd1496a2a9b4a336ea08f0ed3eae7fa3f155989b3 (patch)
tree00e6263534e7c4e2349fb435a55afb132057cef2
parent80084839a9d9a3aaed323a267bbd2f061f37c8f7 (diff)
fix condition that always evaluate to false in commitlayersurfacenotify()
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 753ee40..58dc4db 100644
--- a/dwl.c
+++ b/dwl.c
@@ -792,7 +792,7 @@ commitlayersurfacenotify(struct wl_listener *listener, void *data)
if (!wlr_output || !(layersurface->mon = wlr_output->data))
return;
- if (layers[wlr_layer_surface->current.layer] != layersurface->scene) {
+ if (layers[wlr_layer_surface->current.layer] != layersurface->scene->parent) {
wlr_scene_node_reparent(layersurface->scene,
layers[wlr_layer_surface->current.layer]);
wl_list_remove(&layersurface->link);