mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
Add wallpapers to output command
This commit is contained in:
parent
79b277fe9b
commit
5728307520
5 changed files with 59 additions and 19 deletions
|
|
@ -43,6 +43,11 @@ static bool handle_output_created(wlc_handle output) {
|
|||
swayc_t *ws = op->children->items[0];
|
||||
workspace_switch(ws);
|
||||
}
|
||||
|
||||
// Fixes issues with backgrounds and wlc
|
||||
wlc_handle prev = wlc_get_focused_output();
|
||||
wlc_output_focus(output);
|
||||
wlc_output_focus(prev);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue