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:
parent
0cf867d548
commit
a34d8281b9
|
|
@ -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; }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue