From e1eda8a09c15780e7f6ab0b6a1ab7e811a3d8764 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 21 Feb 2020 17:54:41 +0100 Subject: Don't apply exclusive zones of unmapped layer-shell surfaces Backport of [1]. [1]: https://github.com/emersion/rootston/pull/15/files --- sway/desktop/layer_shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sway/desktop') 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; -- cgit v1.2.3-54-g00ecf