aboutsummaryrefslogtreecommitdiff
path: root/sway/extensions.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-05-21 09:58:13 -0400
committerDrew DeVault <sir@cmpwn.com>2016-05-21 09:58:13 -0400
commitd5c004f99738d4402b9e5d7de38f71d13fac719f (patch)
treed427d5d1ff4f57da237fa5493e9eba3ca72bac0a /sway/extensions.c
parentae52511649539fb85d3a9de191c1260f0ef9d571 (diff)
parentf33cdc0f2f0d94df4cd7ab367298d92d7b58e25b (diff)
Merge pull request #668 from mikkeloscar/rearrange-on-bg-change
Rearrange output when setting background
Diffstat (limited to 'sway/extensions.c')
-rw-r--r--sway/extensions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/extensions.c b/sway/extensions.c
index c646ac91..7bc9bbe4 100644
--- a/sway/extensions.c
+++ b/sway/extensions.c
@@ -78,11 +78,12 @@ 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);
}
static void set_panel(struct wl_client *client, struct wl_resource *resource,
- struct wl_resource *_output, struct wl_resource *surface) {
+ struct wl_resource *_output, struct wl_resource *surface) {
wlc_handle output = wlc_handle_from_wl_output_resource(_output);
if (!output) {
return;