mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Arrange backgrounds only when required
This commit is contained in:
parent
464239f7ac
commit
a2bc6f3bfd
4 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue