aboutsummaryrefslogtreecommitdiffstats
path: root/sway/layout.c
diff options
context:
space:
mode:
authorLibravatar Mykyta Holubakha <hilobakho@gmail.com>2016-07-21 22:47:35 +0300
committerLibravatar Mykyta Holubakha <hilobakho@gmail.com>2016-07-21 22:47:35 +0300
commita2bc6f3bfd35c9785b8b3bb1a788587f298edef6 (patch)
tree3e36293102f4fae4fac864fced569de8717d73ea /sway/layout.c
parentMerge pull request #776 from Hummer12007/window-events (diff)
downloadsway-a2bc6f3bfd35c9785b8b3bb1a788587f298edef6.tar.gz
sway-a2bc6f3bfd35c9785b8b3bb1a788587f298edef6.tar.zst
sway-a2bc6f3bfd35c9785b8b3bb1a788587f298edef6.zip
Arrange backgrounds only when required
Diffstat (limited to 'sway/layout.c')
-rw-r--r--sway/layout.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c
index d32b4139..faa108a1 100644
--- a/sway/layout.c
+++ b/sway/layout.c
@@ -961,9 +961,12 @@ void arrange_windows(swayc_t *container, double width, double height) {
961 update_visibility(container); 961 update_visibility(container);
962 arrange_windows_r(container, width, height); 962 arrange_windows_r(container, width, height);
963 layout_log(&root_container, 0); 963 layout_log(&root_container, 0);
964}
964 965
966void arrange_backgrounds(void) {
967 struct background_config *bg;
965 for (int i = 0; i < desktop_shell.backgrounds->length; ++i) { 968 for (int i = 0; i < desktop_shell.backgrounds->length; ++i) {
966 struct background_config *bg = desktop_shell.backgrounds->items[i]; 969 bg = desktop_shell.backgrounds->items[i];
967 wlc_view_send_to_back(bg->handle); 970 wlc_view_send_to_back(bg->handle);
968 } 971 }
969} 972}