From 2eb02b63209dfb27788a3d897ec4a7b0af656b25 Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Fri, 20 May 2016 23:13:22 +0200 Subject: [PATCH 1/2] Rearrange output when setting background Fix #659 --- sway/extensions.c | 1 + 1 file changed, 1 insertion(+) 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); } From f33cdc0f2f0d94df4cd7ab367298d92d7b58e25b Mon Sep 17 00:00:00 2001 From: Mikkel Oscar Lyderik Date: Fri, 20 May 2016 23:13:47 +0200 Subject: [PATCH 2/2] Remove stray whitespace --- sway/extensions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/extensions.c b/sway/extensions.c index 8c3d920e..7bc9bbe4 100644 --- a/sway/extensions.c +++ b/sway/extensions.c @@ -83,7 +83,7 @@ static void set_background(struct wl_client *client, struct wl_resource *resourc } 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;