aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2022-08-02 18:28:06 +0200
committerKenny Levinsen <kl@kl.wtf>2022-08-06 00:23:44 +0200
commit3baf2a6bcfc4cb86c364f5724aaec80f28715a01 (patch)
treee73dddbfd3e92f867fe262c3434b72d3f119bda0
parent7abe8352db188b82ff59dec945ac66ede3709375 (diff)
scene/layer_shell: Ignore unmapped exclusion zone
Only the exclusion zone for mapped layer shell surfaces should be respected. In particular, a layer shell surface that was mapped with an exclusion zone but is now unmapped should not adjust the usable area. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3471
-rw-r--r--types/scene/layer_shell_v1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types/scene/layer_shell_v1.c b/types/scene/layer_shell_v1.c
index b674cd36..22986983 100644
--- a/types/scene/layer_shell_v1.c
+++ b/types/scene/layer_shell_v1.c
@@ -125,7 +125,7 @@ void wlr_scene_layer_surface_v1_configure(
wlr_scene_node_set_position(&scene_layer_surface->tree->node, box.x, box.y);
wlr_layer_surface_v1_configure(layer_surface, box.width, box.height);
- if (state->exclusive_zone > 0) {
+ if (layer_surface->mapped && state->exclusive_zone > 0) {
layer_surface_exclusive_zone(state, usable_area);
}
}