aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-18 16:36:18 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-18 16:36:38 -0500
commita1b33826cfeb9a6764428c44cfba7d26089b40be (patch)
tree585ee8cde862464381e6c871e15c85b0a4fe7c60
parent7710cf050d1a66f35fc590e0000bb300a707a5e1 (diff)
Revert "remove useless check of `m` in arrangelayers()"
This partially reverts commit d14ee99661e420c8e3d8fcc6791429a0e08bd915. Checking if the output is enabled is necessary to avoid a segfault later
-rw-r--r--dwl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 798ba80..36d3327 100644
--- a/dwl.c
+++ b/dwl.c
@@ -596,6 +596,8 @@ arrangelayers(Monitor *m)
ZWLR_LAYER_SHELL_V1_LAYER_TOP,
};
LayerSurface *layersurface;
+ if (!m->wlr_output->enabled)
+ return;
/* Arrange exclusive surfaces from top->bottom */
for (i = 3; i >= 0; i--)