diff options
-rw-r--r-- | sway/layout.c | 5 | ||||
-rw-r--r-- | sway/workspace.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/sway/layout.c b/sway/layout.c index 3d746ebe..2e0bf0bb 100644 --- a/sway/layout.c +++ b/sway/layout.c | |||
@@ -959,6 +959,11 @@ void arrange_windows(swayc_t *container, double width, double height) { | |||
959 | update_visibility(container); | 959 | update_visibility(container); |
960 | arrange_windows_r(container, width, height); | 960 | arrange_windows_r(container, width, height); |
961 | layout_log(&root_container, 0); | 961 | layout_log(&root_container, 0); |
962 | |||
963 | for (int i = 0; i < desktop_shell.backgrounds->length; ++i) { | ||
964 | struct background_config *bg = desktop_shell.backgrounds->items[i]; | ||
965 | wlc_view_send_to_back(bg->handle); | ||
966 | } | ||
962 | } | 967 | } |
963 | 968 | ||
964 | /** | 969 | /** |
diff --git a/sway/workspace.c b/sway/workspace.c index 3ac6626c..913a412c 100644 --- a/sway/workspace.c +++ b/sway/workspace.c | |||
@@ -309,10 +309,6 @@ bool workspace_switch(swayc_t *workspace) { | |||
309 | } | 309 | } |
310 | swayc_t *output = swayc_parent_by_type(workspace, C_OUTPUT); | 310 | swayc_t *output = swayc_parent_by_type(workspace, C_OUTPUT); |
311 | arrange_windows(output, -1, -1); | 311 | arrange_windows(output, -1, -1); |
312 | for (int i = 0; i < desktop_shell.backgrounds->length; ++i) { | ||
313 | struct background_config *bg = desktop_shell.backgrounds->items[i]; | ||
314 | wlc_view_send_to_back(bg->handle); | ||
315 | } | ||
316 | return true; | 312 | return true; |
317 | } | 313 | } |
318 | 314 | ||