diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2024-09-06 00:42:49 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2024-09-06 00:42:49 +0200 |
| commit | 35cc922aa904dc1cc71271ff379028931b7ac7e8 (patch) | |
| tree | 971ca9c65b1b71c277e15a86ca6fffde22f1277d | |
| parent | e1ca7a4e53d2a1ff9404e3292d23b111d35692bf (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.
| -rw-r--r-- | sway/tree/arrange.c | 3 |
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); |
