mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-08 13:29:56 -05:00
opt: optimize var name
This commit is contained in:
parent
0da68f025a
commit
30f1b9fa51
1 changed files with 4 additions and 4 deletions
|
|
@ -196,7 +196,7 @@ struct dwl_animation {
|
|||
bool tagouted;
|
||||
bool tagouting;
|
||||
bool begin_fade_in;
|
||||
bool from_rule;
|
||||
bool tag_from_rule;
|
||||
unsigned int total_frames;
|
||||
unsigned int passed_frames;
|
||||
unsigned int duration;
|
||||
|
|
@ -1415,7 +1415,7 @@ void applyrules(Client *c) {
|
|||
|
||||
if (!c->isopensilent && c->mon &&
|
||||
!(c->tags & (1 << (c->mon->pertag->curtag - 1)))) {
|
||||
c->animation.from_rule = true;
|
||||
c->animation.tag_from_rule = true;
|
||||
view(&(Arg){.ui = c->tags}, true);
|
||||
}
|
||||
|
||||
|
|
@ -1495,7 +1495,7 @@ arrange(Monitor *m, bool want_animation) {
|
|||
wlr_scene_node_set_enabled(&c->scene->node, true);
|
||||
}
|
||||
client_set_suspended(c, false);
|
||||
if (!c->animation.from_rule && want_animation &&
|
||||
if (!c->animation.tag_from_rule && want_animation &&
|
||||
m->pertag->prevtag != 0 && m->pertag->curtag != 0 &&
|
||||
animations) {
|
||||
c->animation.tagining = true;
|
||||
|
|
@ -1534,7 +1534,7 @@ arrange(Monitor *m, bool want_animation) {
|
|||
c->animainit_geom.y = c->animation.current.y;
|
||||
}
|
||||
|
||||
c->animation.from_rule = false;
|
||||
c->animation.tag_from_rule = false;
|
||||
c->animation.tagouting = false;
|
||||
c->animation.tagouted = false;
|
||||
resize(c, c->geom, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue