mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
Revert "remove useless check of m
in arrangelayers()"
This partially reverts commit d14ee99661
.
Checking if the output is enabled is necessary to avoid a segfault later
This commit is contained in:
parent
7710cf050d
commit
a1b33826cf
1 changed files with 2 additions and 0 deletions
2
dwl.c
2
dwl.c
|
@ -596,6 +596,8 @@ arrangelayers(Monitor *m)
|
||||||
ZWLR_LAYER_SHELL_V1_LAYER_TOP,
|
ZWLR_LAYER_SHELL_V1_LAYER_TOP,
|
||||||
};
|
};
|
||||||
LayerSurface *layersurface;
|
LayerSurface *layersurface;
|
||||||
|
if (!m->wlr_output->enabled)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Arrange exclusive surfaces from top->bottom */
|
/* Arrange exclusive surfaces from top->bottom */
|
||||||
for (i = 3; i >= 0; i--)
|
for (i = 3; i >= 0; i--)
|
||||||
|
|
Loading…
Reference in a new issue