From 6734726c074ab74825a50631386f5c92bbe40317 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Fri, 21 Feb 2025 07:54:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96buffer=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maomao.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/maomao.c b/maomao.c index b350ca4a..7c6ba719 100644 --- a/maomao.c +++ b/maomao.c @@ -3651,9 +3651,9 @@ 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->animainit_geom.width <= c->current.width && c->animainit_geom.height <= c->geom.height) { - // return; - // } + if (c->animation.current.width <= c->current.width && c->animation.current.height <= c->geom.height) { + return; + } if(c->iskilling|| c->animation.tagouting || c->animation.tagining || c->animation.tagouted) { return; } @@ -4392,7 +4392,6 @@ void signalhandler(int signalnumber) { int timer_tick_action(void *data) { Client *c = (Client *)data; - bool need_more_frames = false; if (c->animation.running) { wlr_output_schedule_frame(c->mon->wlr_output);