diff options
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index dde9b88b..28fa9564 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -43,6 +43,11 @@ static bool handle_output_created(wlc_handle output) { | |||
43 | swayc_t *ws = op->children->items[0]; | 43 | swayc_t *ws = op->children->items[0]; |
44 | workspace_switch(ws); | 44 | workspace_switch(ws); |
45 | } | 45 | } |
46 | |||
47 | // Fixes issues with backgrounds and wlc | ||
48 | wlc_handle prev = wlc_get_focused_output(); | ||
49 | wlc_output_focus(output); | ||
50 | wlc_output_focus(prev); | ||
46 | return true; | 51 | return true; |
47 | } | 52 | } |
48 | 53 | ||