aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/root.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/root.c')
-rw-r--r--sway/tree/root.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/tree/root.c b/sway/tree/root.c
index dd4d8e33..73f3993c 100644
--- a/sway/tree/root.c
+++ b/sway/tree/root.c
@@ -374,8 +374,8 @@ void root_for_each_container(void (*f)(struct sway_container *con, void *data),
374 } 374 }
375 375
376 // Saved workspaces 376 // Saved workspaces
377 for (int i = 0; i < root->noop_output->workspaces->length; ++i) { 377 for (int i = 0; i < root->fallback_output->workspaces->length; ++i) {
378 struct sway_workspace *ws = root->noop_output->workspaces->items[i]; 378 struct sway_workspace *ws = root->fallback_output->workspaces->items[i];
379 workspace_for_each_container(ws, f, data); 379 workspace_for_each_container(ws, f, data);
380 } 380 }
381} 381}
@@ -427,8 +427,8 @@ struct sway_container *root_find_container(
427 } 427 }
428 428
429 // Saved workspaces 429 // Saved workspaces
430 for (int i = 0; i < root->noop_output->workspaces->length; ++i) { 430 for (int i = 0; i < root->fallback_output->workspaces->length; ++i) {
431 struct sway_workspace *ws = root->noop_output->workspaces->items[i]; 431 struct sway_workspace *ws = root->fallback_output->workspaces->items[i];
432 if ((result = workspace_find_container(ws, test, data))) { 432 if ((result = workspace_find_container(ws, test, data))) {
433 return result; 433 return result;
434 } 434 }