diff options
author | 2015-11-19 18:55:17 -0500 | |
---|---|---|
committer | 2015-11-19 18:55:17 -0500 | |
commit | 5728307520fe80b34067cf4d312409548d4a0a10 (patch) | |
tree | 4698561d5912c59930fe7f13519437bc02a8a2ad /sway/handlers.c | |
parent | Parse output background config (diff) | |
download | sway-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.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 | ||