aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-05-20 23:13:22 +0200
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-05-20 23:13:24 +0200
commit2eb02b63209dfb27788a3d897ec4a7b0af656b25 (patch)
tree48fc96bcbb8a90a0469fbe05da9a436cf21d96ca
parentae52511649539fb85d3a9de191c1260f0ef9d571 (diff)
Rearrange output when setting background
Fix #659
-rw-r--r--sway/extensions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/extensions.c b/sway/extensions.c
index c646ac91..8c3d920e 100644
--- a/sway/extensions.c
+++ b/sway/extensions.c
@@ -78,6 +78,7 @@ static void set_background(struct wl_client *client, struct wl_resource *resourc
config->wl_surface_res = surface;
list_add(desktop_shell.backgrounds, config);
wl_resource_set_destructor(surface, background_surface_destructor);
+ arrange_windows(swayc_by_handle(output), -1, -1);
wlc_output_schedule_render(config->output);
}