summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@proton.me>2023-12-07 14:09:10 -0600
committerLeonardo Hernández Hernández <leohdz172@proton.me>2023-12-07 14:19:02 -0600
commit28ec843aee3d339ef0b5b95685cdd7c2bcacdb16 (patch)
tree711bfcf6a2916b069de513cd60da97c946f67dbb
parent2b3504e439f3064700c4aed002caf56a1a7d21ac (diff)
make sure popups of a layer surface are in the correct layer
previously it worked because we checked in every commit the layer in a353eee2cac0378a4201e408a3417aa107a7f647 and b100b446b8c82bc2dcdbb40856ab87ed4a4ad594 we changed the way it's handled and now if the layer surface does not change the layer we don't it either. meaning that if it was created in the bottom layer and did not change the layer the popups would show behind xdg clients
-rw-r--r--dwl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index bbb27e4..e9b7d84 100644
--- a/dwl.c
+++ b/dwl.c
@@ -814,7 +814,8 @@ createlayersurface(struct wl_listener *listener, void *data)
l->mon = layer_surface->output->data;
l->scene_layer = wlr_scene_layer_surface_v1_create(scene_layer, layer_surface);
l->scene = l->scene_layer->tree;
- l->popups = surface->data = wlr_scene_tree_create(scene_layer);
+ l->popups = surface->data = wlr_scene_tree_create(layer_surface->current.layer
+ < ZWLR_LAYER_SHELL_V1_LAYER_TOP ? layers[LyrTop] : scene_layer);
l->scene->node.data = l;