summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-10-01 23:33:17 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-10-01 23:33:17 -0500
commit434ed119f3427c1539aff95c57977c35921afb19 (patch)
tree95c6e1644e2cedc05b525d51415a2aae77144cd1
parentae3d435717f9c40313a516ed760094718104b9c3 (diff)
wlroots check map state of layersurfaces this for us
-rw-r--r--dwl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dwl.c b/dwl.c
index eb072bb..32a1650 100644
--- a/dwl.c
+++ b/dwl.c
@@ -456,9 +456,7 @@ arrangelayer(Monitor *m, struct wl_list *list, struct wlr_box *usable_area, int
struct wlr_layer_surface_v1 *wlr_layer_surface = layersurface->layer_surface;
struct wlr_layer_surface_v1_state *state = &wlr_layer_surface->current;
- /* Unmapped surfaces shouldn't have exclusive zone */
- if (!((LayerSurface *)wlr_layer_surface->data)->mapped
- || exclusive != (state->exclusive_zone > 0))
+ if (exclusive != (state->exclusive_zone > 0))
continue;
wlr_scene_layer_surface_v1_configure(layersurface->scene_layer, &full_area, usable_area);