opt: optimize floating window animation in scroller layout

This commit is contained in:
DreamMaoMao 2025-02-10 19:27:00 +08:00
parent 7d53e1e762
commit 916edb333c

2
main.c
View file

@ -3683,7 +3683,7 @@ int is_special_animaiton_rule(Client *c) {
}
}
if (strcmp(selmon->lt[selmon->sellt]->name , "scroller") == 0) {
if (strcmp(selmon->lt[selmon->sellt]->name , "scroller") == 0 && !c->isfloating) {
return DOWN;
} else if (visible_client_number < 2 && !c->isfloating) {
return DOWN;