mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-12 13:30:01 -05:00
opt: optmize no anim opacity set
This commit is contained in:
parent
ae3b13b2df
commit
8b297d51ae
1 changed files with 4 additions and 4 deletions
|
|
@ -385,7 +385,7 @@ void client_apply_clip(Client *c, float factor) {
|
||||||
|
|
||||||
int bw = (int)c->bw;
|
int bw = (int)c->bw;
|
||||||
|
|
||||||
if (!animations || !c->animation.running) {
|
if (!animations) {
|
||||||
c->animation.running = false;
|
c->animation.running = false;
|
||||||
c->need_output_flush = false;
|
c->need_output_flush = false;
|
||||||
c->animainit_geom = c->current = c->pending = c->animation.current =
|
c->animainit_geom = c->current = c->pending = c->animation.current =
|
||||||
|
|
@ -397,9 +397,9 @@ void client_apply_clip(Client *c, float factor) {
|
||||||
|
|
||||||
apply_border(c);
|
apply_border(c);
|
||||||
|
|
||||||
scale_data.opacity = c->isfullscreen ? 1
|
opacity = c->isfullscreen ? 1
|
||||||
: c == selmon->sel ? c->focused_opacity
|
: c == selmon->sel ? c->focused_opacity
|
||||||
: c->unfocused_opacity;
|
: c->unfocused_opacity;
|
||||||
|
|
||||||
if (clip_box.width <= 0 || clip_box.height <= 0) {
|
if (clip_box.width <= 0 || clip_box.height <= 0) {
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue