diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2020-02-24 21:18:51 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-02-25 08:35:43 +0100 |
commit | e0f8235fbfd77d81eecb12295c89f5ad2758b68c (patch) | |
tree | cd11cbec732d67cd0ecf3f7767bc638a490c9809 | |
parent | Don't apply exclusive zones of unmapped layer-shell surfaces (diff) | |
download | sway-e0f8235fbfd77d81eecb12295c89f5ad2758b68c.tar.gz sway-e0f8235fbfd77d81eecb12295c89f5ad2758b68c.tar.zst sway-e0f8235fbfd77d81eecb12295c89f5ad2758b68c.zip |
Revert "Don't apply exclusive zones of unmapped layer-shell surfaces"
This reverts commit e1eda8a09c15780e7f6ab0b6a1ab7e811a3d8764.
-rw-r--r-- | sway/desktop/layer_shell.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index 02df6cbe..b1ee8ae3 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c | |||
@@ -88,8 +88,7 @@ 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 (!layer->mapped || | 91 | if (exclusive != (state->exclusive_zone > 0)) { |
92 | exclusive != (state->exclusive_zone > 0)) { | ||
93 | continue; | 92 | continue; |
94 | } | 93 | } |
95 | struct wlr_box bounds; | 94 | struct wlr_box bounds; |