don't arrange layers on disabled monitors

main
Leonardo Hernández Hernández 2022-09-02 18:49:20 -05:00
parent 19a8a095eb
commit 68576799b9
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 2 additions and 0 deletions

2
dwl.c
View File

@ -591,6 +591,8 @@ arrangelayers(Monitor *m)
ZWLR_LAYER_SHELL_V1_LAYER_TOP, ZWLR_LAYER_SHELL_V1_LAYER_TOP,
}; };
LayerSurface *layersurface; LayerSurface *layersurface;
if (!m || !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--)