aboutsummaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2024-08-14 13:18:04 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2024-08-27 23:09:46 -0600
commitc49312f0841aaa11e9354d9cc239953b7c50ae83 (patch)
treede35ac30bf8d591cd35ebf07e910b6a00b43d153 /dwl.c
parentf89906096537b1ec69a1db3216268ef7b4a1b7b3 (diff)
downloaddwl-c49312f0841aaa11e9354d9cc239953b7c50ae83.tar.gz
disable scene node unless it is unmanaged
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index e6bbf04..1f8df42 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1690,7 +1690,8 @@ mapnotify(struct wl_listener *listener, void *data)
/* Create scene tree for this client and its border */
c->scene = client_surface(c)->data = wlr_scene_tree_create(layers[LyrTile]);
- wlr_scene_node_set_enabled(&c->scene->node, c->type != XDGShell);
+ /* Enabled later by a call to arrange() */
+ wlr_scene_node_set_enabled(&c->scene->node, client_is_unmanaged(c));
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));