layers: put popups in separate node-tree

This allows popups to be rendered above views and other layers. Without
this, the popups of a layer-shell application in the bottom layer would
render below views, which does not seem right. For example, consider the
case of a panel with right-click popups.
This commit is contained in:
Johan Malm 2022-03-03 17:56:38 +00:00
parent 34bd1fb6da
commit 6fd400b493
3 changed files with 36 additions and 7 deletions

View file

@ -196,6 +196,7 @@ struct output {
struct wlr_scene_output *scene_output;
struct wl_list layers[LAB_NR_LAYERS];
struct wlr_scene_tree *layer_tree[LAB_NR_LAYERS];
struct wlr_scene_tree *layer_popup_tree;
struct wlr_box usable_area;
struct lab_data_buffer *osd_buffer;