summaryrefslogtreecommitdiffstats
path: root/sway/handlers.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-11-19 18:55:17 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-11-19 18:55:17 -0500
commit5728307520fe80b34067cf4d312409548d4a0a10 (patch)
tree4698561d5912c59930fe7f13519437bc02a8a2ad /sway/handlers.c
parentParse output background config (diff)
downloadsway-5728307520fe80b34067cf4d312409548d4a0a10.tar.gz
sway-5728307520fe80b34067cf4d312409548d4a0a10.tar.zst
sway-5728307520fe80b34067cf4d312409548d4a0a10.zip
Add wallpapers to output command
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) {
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