mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-01 22:58:44 -04:00
fix: miss reset tagouting state when arrange with no animaiton
This commit is contained in:
parent
df7c877614
commit
c0b8e0ee22
1 changed files with 6 additions and 3 deletions
|
|
@ -1347,9 +1347,9 @@ arrange(Monitor *m, bool want_animation) {
|
|||
resize(c, c->geom, 0);
|
||||
|
||||
} else {
|
||||
if ((c->tags & (1 << (m->pertag->prevtag - 1))) &&
|
||||
m->pertag->prevtag != 0 && m->pertag->curtag != 0 &&
|
||||
animations) {
|
||||
if (animations && want_animation &&
|
||||
(c->tags & (1 << (m->pertag->prevtag - 1))) &&
|
||||
m->pertag->prevtag != 0 && m->pertag->curtag != 0) {
|
||||
c->animation.tagouting = true;
|
||||
c->animation.tagining = false;
|
||||
if (m->pertag->curtag > m->pertag->prevtag) {
|
||||
|
|
@ -1373,6 +1373,9 @@ arrange(Monitor *m, bool want_animation) {
|
|||
resize(c, c->geom, 0);
|
||||
}
|
||||
} else {
|
||||
c->animation.tagouting = false;
|
||||
c->animation.tagining = false;
|
||||
c->animation.tagouted = false;
|
||||
wlr_scene_node_set_enabled(&c->scene->node, false);
|
||||
client_set_suspended(c, true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue