From ae865e67bd08831ccc956109cd40ab6458704fe0 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 23 Feb 2025 18:13:46 +0800 Subject: [PATCH] opt:optimize buffer scale need judge --- config.conf | 2 +- maomao.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config.conf b/config.conf index 61d4efd..8ad69d4 100644 --- a/config.conf +++ b/config.conf @@ -3,7 +3,7 @@ animations=1 animation_type=slide animation_fade_in=1 zoom_initial_ratio=0.5 -fadein_begin_opacity=0 +fadein_begin_opacity=0.5 animation_duration_move=500 animation_duration_open=400 animation_duration_tag=350 diff --git a/maomao.c b/maomao.c index 3ceefed..d8d12e5 100644 --- a/maomao.c +++ b/maomao.c @@ -3655,7 +3655,7 @@ void scene_buffer_apply_size(struct wlr_scene_buffer *buffer, int sx, int sy, vo } void buffer_set_size(Client *c, animationScale data) { - if (c->animation.current.width <= c->current.width && c->animation.current.height <= c->geom.height) { + if (c->animation.current.width <= c->geom.width && c->animation.current.height <= c->geom.height) { return; } if(c->iskilling|| c->animation.tagouting || c->animation.tagining || c->animation.tagouted) { @@ -3815,7 +3815,7 @@ int is_special_animaiton_rule(Client *c) { Client *count_c; wl_list_for_each(count_c, &clients, link) { if (count_c && VISIBLEON(count_c, selmon) && !count_c->isminied && - !count_c->iskilling) { + !count_c->iskilling && !count_c->isfloating) { visible_client_number++; } }