aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2020-02-21 17:54:41 +0100
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2020-02-24 19:38:36 -0500
commite1eda8a09c15780e7f6ab0b6a1ab7e811a3d8764 (patch)
tree2cd3e6a4835793181d90df99c67859cf65ab14b1
parentFix get_int_prop(WINDOW_TYPE) crash (diff)
downloadsway-e1eda8a09c15780e7f6ab0b6a1ab7e811a3d8764.tar.gz
sway-e1eda8a09c15780e7f6ab0b6a1ab7e811a3d8764.tar.zst
sway-e1eda8a09c15780e7f6ab0b6a1ab7e811a3d8764.zip
Don't apply exclusive zones of unmapped layer-shell surfaces
Backport of [1]. [1]: https://github.com/emersion/rootston/pull/15/files
-rw-r--r--sway/desktop/layer_shell.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
index b1ee8ae3..02df6cbe 100644
--- a/sway/desktop/layer_shell.c
+++ b/sway/desktop/layer_shell.c
@@ -88,7 +88,8 @@ static void arrange_layer(struct sway_output *output, struct wl_list *list,
88 wl_list_for_each(sway_layer, list, link) { 88 wl_list_for_each(sway_layer, list, link) {
89 struct wlr_layer_surface_v1 *layer = sway_layer->layer_surface; 89 struct wlr_layer_surface_v1 *layer = sway_layer->layer_surface;
90 struct wlr_layer_surface_v1_state *state = &layer->current; 90 struct wlr_layer_surface_v1_state *state = &layer->current;
91 if (exclusive != (state->exclusive_zone > 0)) { 91 if (!layer->mapped ||
92 exclusive != (state->exclusive_zone > 0)) {
92 continue; 93 continue;
93 } 94 }
94 struct wlr_box bounds; 95 struct wlr_box bounds;