From a34d8281b97a9c73f5b7f08be0dbea817645bb63 Mon Sep 17 00:00:00 2001 From: lkn Date: Sat, 23 May 2026 14:12:34 +0200 Subject: [PATCH] fix: raise button scene_bufs above titlebar after painting Buttons and titlebar are siblings in the same scene tree. The titlebar scene_buf is created after buttons, so it sits on top and occludes them. Raise button nodes to top after enabling them in wl_frame_paint_button. --- src/backend/wayland/wl_backend.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/wayland/wl_backend.c b/src/backend/wayland/wl_backend.c index 24be4c4..cbe958c 100644 --- a/src/backend/wayland/wl_backend.c +++ b/src/backend/wayland/wl_backend.c @@ -7658,6 +7658,7 @@ static void wl_frame_paint_button(WCoreWindow *button, WTexture *texture, /* Enable and commit the button's own scene_buf */ wlr_scene_buffer_set_buffer(btn_fb->scene_buf, &btn_fb->base); wlr_scene_node_set_enabled(&btn_fb->scene_buf->node, true); + wlr_scene_node_raise_to_top(&btn_fb->scene_buf->node); } static void wl_noop_netwm_init(WScreen *scr) { (void)scr; }