From a525705e5253999ed11c17ba171bead139faacec Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 19 Feb 2025 08:50:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E4=B8=80=E6=AD=A5=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=BC=A9=E6=94=BE=E7=BB=88=E7=82=B9=E6=8A=96=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maomao.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/maomao.c b/maomao.c index 88038605..ae4dea24 100644 --- a/maomao.c +++ b/maomao.c @@ -869,8 +869,8 @@ void client_apply_clip(Client *c) { } animationScale scale_data; - scale_data.width = clip_box.width; - scale_data.height = clip_box.height; + scale_data.width = clip_box.width - 2*c->bw; + scale_data.height = clip_box.height -2*c->bw; if(c->animation.running) { scale_data.scale = (float)clip_box.width/c->geom.width; @@ -3633,15 +3633,12 @@ void scene_buffer_apply_size(struct wlr_scene_buffer *buffer, int sx, int sy, vo } else { wlr_scene_buffer_set_dest_size(buffer, scale_data->width, scale_data->height); } - // else { - // wlr_scene_buffer_set_dest_size(buffer, buffer->dst_width * *scale_factor, buffer->dst_height * *scale_factor); - // } - // return; - // wlr_scene_buffer_set_dest_size(buffer, -1, -1); - // lognumtofile(buffer->dst_width **scale_factor); } void buffer_set_size(Client *c, animationScale data) { + if(c->iskilling|| c->animation.tagouting || c->animation.tagining || c->animation.tagouted) { + return; + } wlr_scene_node_for_each_buffer(&c->scene_surface->node, scene_buffer_apply_size, &data); }