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:
Leonardo Hernández Hernández 2022-09-18 16:36:18 -05:00
parent 7710cf050d
commit a1b33826cf
Failed to generate hash of commit

2
dwl.c
View file

@ -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--)