aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c5
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) {
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;
}