mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-31 22:25:29 -04:00
opt: optimize var name
This commit is contained in:
parent
86f6640299
commit
6daa0394af
1 changed files with 4 additions and 4 deletions
|
|
@ -201,7 +201,7 @@ struct dwl_animation {
|
||||||
bool tagouted;
|
bool tagouted;
|
||||||
bool tagouting;
|
bool tagouting;
|
||||||
bool begin_fade_in;
|
bool begin_fade_in;
|
||||||
bool from_rule;
|
bool tag_from_rule;
|
||||||
unsigned int total_frames;
|
unsigned int total_frames;
|
||||||
unsigned int passed_frames;
|
unsigned int passed_frames;
|
||||||
unsigned int duration;
|
unsigned int duration;
|
||||||
|
|
@ -1427,7 +1427,7 @@ void applyrules(Client *c) {
|
||||||
|
|
||||||
if (!c->isopensilent && c->mon &&
|
if (!c->isopensilent && c->mon &&
|
||||||
!(c->tags & (1 << (c->mon->pertag->curtag - 1)))) {
|
!(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);
|
view(&(Arg){.ui = c->tags}, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1507,7 +1507,7 @@ arrange(Monitor *m, bool want_animation) {
|
||||||
wlr_scene_node_set_enabled(&c->scene->node, true);
|
wlr_scene_node_set_enabled(&c->scene->node, true);
|
||||||
}
|
}
|
||||||
client_set_suspended(c, false);
|
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 &&
|
m->pertag->prevtag != 0 && m->pertag->curtag != 0 &&
|
||||||
animations) {
|
animations) {
|
||||||
c->animation.tagining = true;
|
c->animation.tagining = true;
|
||||||
|
|
@ -1546,7 +1546,7 @@ arrange(Monitor *m, bool want_animation) {
|
||||||
c->animainit_geom.y = c->animation.current.y;
|
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.tagouting = false;
|
||||||
c->animation.tagouted = false;
|
c->animation.tagouted = false;
|
||||||
resize(c, c->geom, 0);
|
resize(c, c->geom, 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue