opt: optmize no anim opacity set

This commit is contained in:
DreamMaoMao
2025-07-15 16:10:06 +08:00
parent 962438deb7
commit 669095a157

View File

@@ -512,7 +512,7 @@ void client_apply_clip(Client *c, float factor) {
int bw = (int)c->bw;
if (!animations || !c->animation.running) {
if (!animations) {
c->animation.running = false;
c->need_output_flush = false;
c->animainit_geom = c->current = c->pending = c->animation.current =
@@ -525,7 +525,7 @@ void client_apply_clip(Client *c, float factor) {
apply_border(c);
client_draw_shadow(c);
scale_data.opacity = c->isfullscreen ? 1
opacity = c->isfullscreen ? 1
: c == selmon->sel ? c->focused_opacity
: c->unfocused_opacity;