From e0f8235fbfd77d81eecb12295c89f5ad2758b68c Mon Sep 17 00:00:00 2001
From: Brian Ashworth <bosrsf04@gmail.com>
Date: Mon, 24 Feb 2020 21:18:51 -0500
Subject: Revert "Don't apply exclusive zones of unmapped layer-shell surfaces"

This reverts commit e1eda8a09c15780e7f6ab0b6a1ab7e811a3d8764.
---
 sway/desktop/layer_shell.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'sway')

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,
 	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 (!layer->mapped ||
-				exclusive != (state->exclusive_zone > 0)) {
+		if (exclusive != (state->exclusive_zone > 0)) {
 			continue;
 		}
 		struct wlr_box bounds;
-- 
cgit v1.2.3