diff options
author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-09-18 16:36:18 -0500 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-09-18 16:36:38 -0500 |
commit | a1b33826cfeb9a6764428c44cfba7d26089b40be (patch) | |
tree | 585ee8cde862464381e6c871e15c85b0a4fe7c60 /dwl.c | |
parent | 7710cf050d1a66f35fc590e0000bb300a707a5e1 (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
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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--) |