From d1496a2a9b4a336ea08f0ed3eae7fa3f155989b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Wed, 7 Sep 2022 23:54:57 -0500 Subject: fix condition that always evaluate to false in commitlayersurfacenotify() --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3