From 48e90bad6a2f353a461a888a8ba5e777d3eb5382 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Wed, 19 Feb 2025 10:12:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=A4=84=E7=90=86=E6=97=A0?= =?UTF-8?q?=E6=95=88=E5=AE=A2=E6=88=B7=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sfd --- maomao.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maomao.c b/maomao.c index 0d7de0b5..6bc7190b 100644 --- a/maomao.c +++ b/maomao.c @@ -787,6 +787,9 @@ void client_actual_size(Client *c, uint32_t *width, uint32_t *height) { void apply_border(Client *c, struct wlr_box clip_box, int offset) { + if(c->iskilling || !client_surface(c)->mapped) + return; + wlr_scene_node_set_position(&c->scene_surface->node, c->bw, c->bw); wlr_scene_rect_set_size(c->border[0], clip_box.width, c->bw); wlr_scene_rect_set_size(c->border[1], clip_box.width, c->bw); @@ -835,6 +838,10 @@ void apply_border(Client *c, struct wlr_box clip_box, int offset) { } void client_apply_clip(Client *c) { + + if(c->iskilling || !client_surface(c)->mapped) + return; + uint32_t width, height; client_actual_size(c, &width, &height); int offset = 0;