aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2020-02-21 17:54:41 +0100
committerFurkan Sahin <furkan-dev@proton.me>2020-02-21 17:54:41 +0100
commit2cfc639f976eceb7182e93b2648f2a344af1bcd7 (patch)
tree2cd3e6a4835793181d90df99c67859cf65ab14b1
parent44185fa97d4e7e0495293e3ad13cf3c07345e890 (diff)
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,
wl_list_for_each(sway_layer, list, link) {
struct wlr_layer_surface_v1 *layer = sway_layer->layer_surface;
struct wlr_layer_surface_v1_state *state = &layer->current;
- if (exclusive != (state->exclusive_zone > 0)) {
+ if (!layer->mapped ||
+ exclusive != (state->exclusive_zone > 0)) {
continue;
}
struct wlr_box bounds;