menu: put menu_tree above overlay layer

This commit is contained in:
Johan Malm 2024-07-01 21:47:19 +01:00 committed by Hiroaki Yamamoto
parent ac7c94db12
commit 86c35976ba
2 changed files with 8 additions and 0 deletions

View file

@ -556,6 +556,7 @@ server_init(struct server *server)
* | Type | Scene Tree | Per Output | Example
* | ----------------- | ---------------- | ---------- | -------
* | ext-session | lock-screen | Yes | swaylock
* | compositor-menu | menu_tree | No | root-menu
* | layer-shell | layer-popups | Yes |
* | layer-shell | overlay-layer | Yes |
* | layer-shell | top-layer | Yes | waybar
@ -576,6 +577,11 @@ server_init(struct server *server)
#if HAVE_XWAYLAND
server->unmanaged_tree = wlr_scene_tree_create(&server->scene->tree);
#endif
/*
* menu_tree is moved to top in new_output_notify() when layer-shell
* layers are positioned
*/
server->menu_tree = wlr_scene_tree_create(&server->scene->tree);
workspaces_init(server);