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.
This commit is contained in:
Kenny Levinsen 2024-09-06 00:42:49 +02:00 committed by Alexander Orzechowski
parent 14bff7b451
commit f4a6b0395f

View File

@ -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);