feat: dont resize client when in overview

This commit is contained in:
DreamMaoMao 2026-05-19 10:02:21 +08:00
parent 9e4fade55e
commit a6a765caff
9 changed files with 446 additions and 137 deletions

View file

@ -1743,15 +1743,18 @@ int32_t toggleoverview(const Arg *arg) {
wl_list_for_each(c, &clients, link) {
if (c && c->mon == selmon && !client_is_unmanaged(c) &&
!client_is_x11_popup(c) && !c->isunglobal)
!client_is_x11_popup(c) && !c->isunglobal) {
c->animation.overining = true;
overview_backup(c);
}
}
} else {
wl_list_for_each(c, &clients, link) {
if (c && c->mon == selmon && !c->iskilling &&
!client_is_unmanaged(c) && !c->isunglobal &&
!client_is_x11_popup(c) && client_surface(c)->mapped)
!client_is_x11_popup(c) && client_surface(c)->mapped) {
overview_restore(c, &(Arg){.ui = target});
}
}
}