summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2024-09-06 00:42:49 +0200
committerFurkan Sahin <furkan-dev@proton.me>2024-09-06 00:42:49 +0200
commit271a313160ffa03a0964f55df92c8e592cdb36e5 (patch)
treee1d2c5025e54ae9a5c6e23ff981b55bd928b60b3
parent0274ef0ea18b8925db128e1ec7a8b4ee85cd33be (diff)
tree/arrange; Skip arranging disabled outputs
Disabled outputs might not have a geometry to arrange for, so skip the arrange to avoid messing up the workspace geometry. (cherry picked from f4a6b0395f3fe38cb14bec1f5ac30445496e525c)
-rw-r--r--sway/tree/arrange.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/arrange.c b/sway/tree/arrange.c
index 352ec0e5..2b95a6dc 100644
--- a/sway/tree/arrange.c
+++ b/sway/tree/arrange.c
@@ -314,6 +314,9 @@ void arrange_output(struct sway_output *output) {
if (config->reloading) {
return;
}
+ if (!output->wlr_output->enabled) {
+ return;
+ }
for (int i = 0; i < output->workspaces->length; ++i) {
struct sway_workspace *workspace = output->workspaces->items[i];
arrange_workspace(workspace);