Arrange backgrounds only when required

This commit is contained in:
Mykyta Holubakha 2016-07-21 22:47:35 +03:00
parent 464239f7ac
commit a2bc6f3bfd
4 changed files with 7 additions and 1 deletions

View file

@ -961,9 +961,12 @@ void arrange_windows(swayc_t *container, double width, double height) {
update_visibility(container);
arrange_windows_r(container, width, height);
layout_log(&root_container, 0);
}
void arrange_backgrounds(void) {
struct background_config *bg;
for (int i = 0; i < desktop_shell.backgrounds->length; ++i) {
struct background_config *bg = desktop_shell.backgrounds->items[i];
bg = desktop_shell.backgrounds->items[i];
wlc_view_send_to_back(bg->handle);
}
}