fix: wrong scroll judge when disable animaitons

This commit is contained in:
DreamMaoMao
2025-11-20 21:21:29 +08:00
parent e22cf99e74
commit e7cb4f77f3
2 changed files with 2 additions and 2 deletions

View File

@@ -263,7 +263,7 @@ void vertical_scroller(Monitor *m) {
for (i = 0; i < n; i++) {
c = tempClients[i];
if (root_client == c) {
if (!c->is_pending_open_animation &&
if ((!c->is_pending_open_animation || !animations) &&
c->geom.y >= m->w.y + scroller_structs &&
c->geom.y + c->geom.height <=
m->w.y + m->w.height - scroller_structs) {