From 6daa0394afc09f9a37b42c269fef6ecd2514b383 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 14 Jul 2025 10:59:51 +0800 Subject: [PATCH] opt: optimize var name --- src/maomao.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/maomao.c b/src/maomao.c index 29fd717..4936879 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -201,7 +201,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; @@ -1427,7 +1427,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); } @@ -1507,7 +1507,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; @@ -1546,7 +1546,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);