mirror of
https://github.com/swaywm/sway.git
synced 2026-04-03 07:15:39 -04:00
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.
This commit is contained in:
parent
729e18bff5
commit
0cd8efe0bb
11 changed files with 28 additions and 26 deletions
|
|
@ -56,8 +56,8 @@ static void restore_workspaces(struct sway_output *output) {
|
|||
}
|
||||
|
||||
// Saved workspaces
|
||||
while (root->noop_output->workspaces->length) {
|
||||
struct sway_workspace *ws = root->noop_output->workspaces->items[0];
|
||||
while (root->fallback_output->workspaces->length) {
|
||||
struct sway_workspace *ws = root->fallback_output->workspaces->items[0];
|
||||
workspace_detach(ws);
|
||||
output_add_workspace(output, ws);
|
||||
|
||||
|
|
@ -192,7 +192,7 @@ static void output_evacuate(struct sway_output *output) {
|
|||
new_output = fallback_output;
|
||||
}
|
||||
if (!new_output) {
|
||||
new_output = root->noop_output;
|
||||
new_output = root->fallback_output;
|
||||
}
|
||||
|
||||
struct sway_workspace *new_output_ws =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue