From a1b33826cfeb9a6764428c44cfba7d26089b40be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Hern=C3=A1ndez=20Hern=C3=A1ndez?= Date: Sun, 18 Sep 2022 16:36:18 -0500 Subject: [PATCH] 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 --- dwl.c | 2 ++ 1 file changed, 2 insertions(+) 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--)