fix: wrong scroll judge when disable animaitons
This commit is contained in:
@@ -301,7 +301,7 @@ void 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.x >= m->w.x + scroller_structs &&
|
||||
c->geom.x + c->geom.width <=
|
||||
m->w.x + m->w.width - scroller_structs) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user