]> git.lizzy.rs Git - bspwm.git/commitdiff
Arrange across all desktops when handling struts
authorBastien Dejean <nihilhill@gmail.com>
Mon, 3 Aug 2020 12:06:57 +0000 (14:06 +0200)
committerBastien Dejean <nihilhill@gmail.com>
Mon, 3 Aug 2020 12:06:57 +0000 (14:06 +0200)
Fixes #1165.

src/window.c

index a22b5e78a042d8b6323f07b319708bf0910ef3cc..cd2340dfd19bf6024f37abd1e1678b8a20cfe1ea 100644 (file)
@@ -81,7 +81,9 @@ bool manage_window(xcb_window_t win, rule_consequence_t *csq, int fd)
 
        if (!ignore_ewmh_struts && ewmh_handle_struts(win)) {
                for (monitor_t *m = mon_head; m != NULL; m = m->next) {
-                       arrange(m, m->desk);
+                       for (desktop_t *d = m->desk_head; d != NULL; d = d->next) {
+                               arrange(m, d);
+                       }
                }
        }