diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-10-04 10:04:46 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-11-25 17:48:34 +0100 |
commit | 0cd8efe0bb669e71e9cdc30d96ae466cb583e605 (patch) | |
tree | 0cc1cdf1d76347b92376fcf9087792e1b2f69a49 /sway/tree/root.c | |
parent | Replace wlr_headless_backend_create_with_renderer call (diff) | |
download | sway-0cd8efe0bb669e71e9cdc30d96ae466cb583e605.tar.gz sway-0cd8efe0bb669e71e9cdc30d96ae466cb583e605.tar.zst sway-0cd8efe0bb669e71e9cdc30d96ae466cb583e605.zip |
sway: replace noop_output by fallback_output
wlroots removed the support for the noop backend. Instead we rely on the
headless backend to provide the fallback output.
Diffstat (limited to 'sway/tree/root.c')
-rw-r--r-- | sway/tree/root.c | 8 |
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 | } |