commit f4a6b0395f3fe38cb14bec1f5ac30445496e525c
parent 14bff7b451d865f16e3fc82279dfba314b11269c
Author: Kenny Levinsen <kl@kl.wtf>
Date: Fri, 6 Sep 2024 00:42:49 +0200
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.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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);