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.
This commit is contained in:
lkn 2026-05-23 14:12:34 +02:00
parent 0cf867d548
commit a34d8281b9
1 changed files with 1 additions and 0 deletions

View File

@ -7658,6 +7658,7 @@ static void wl_frame_paint_button(WCoreWindow *button, WTexture *texture,
/* Enable and commit the button's own scene_buf */ /* Enable and commit the button's own scene_buf */
wlr_scene_buffer_set_buffer(btn_fb->scene_buf, &btn_fb->base); 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_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; } static void wl_noop_netwm_init(WScreen *scr) { (void)scr; }