summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-02 18:49:20 -0500
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-09-02 18:49:20 -0500
commit68576799b96950dd36ed7c71ba0c4b1607a13cc8 (patch)
tree67a9ec3b9d04cce99f17be0c7fa75f0d1e70e724
parent19a8a095ebe782065903b9a03670560371302206 (diff)
don't arrange layers on disabled monitors
-rw-r--r--dwl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index f6db3c1..669580a 100644
--- a/dwl.c
+++ b/dwl.c
@@ -591,6 +591,8 @@ arrangelayers(Monitor *m)
ZWLR_LAYER_SHELL_V1_LAYER_TOP,
};
LayerSurface *layersurface;
+ if (!m || !m->wlr_output->enabled)
+ return;
/* Arrange exclusive surfaces from top->bottom */
for (i = 3; i >= 0; i--)