From 92e7752203eb7812f2d333f8c6af1963fa743c09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Wed, 7 Dec 2022 16:26:37 -0600 Subject: disable client's scene node after create it (only XDGShell) will be enabled when setting up its monitor and arrange it Bug: https://github.com/djpohly/dwl/issues/306 --- dwl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dwl.c b/dwl.c index 4fb8f49..196c34d 100644 --- a/dwl.c +++ b/dwl.c @@ -1474,6 +1474,7 @@ mapnotify(struct wl_listener *listener, void *data) /* Create scene tree for this client and its border */ c->scene = wlr_scene_tree_create(layers[LyrTile]); + wlr_scene_node_set_enabled(&c->scene->node, c->type != XDGShell); c->scene_surface = c->type == XDGShell ? wlr_scene_xdg_surface_create(c->scene, c->surface.xdg) : wlr_scene_subsurface_tree_create(c->scene, client_surface(c)); -- cgit v1.2.3