From ad5c964019f6d77935ed1618a1041bd21596683e Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 6 Feb 2025 16:27:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=90=E4=BA=9B=E5=8A=A8=E4=BD=9C=E6=8E=92?= =?UTF-8?q?=E9=99=A4killing=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 3852bd2f..0945b8b8 100644 --- a/main.c +++ b/main.c @@ -3914,7 +3914,7 @@ setfloating(Client *c, int floating) { struct wlr_box target_box, backup_box; c->isfloating = floating; - if (!c || !c->mon || !client_surface(c)->mapped) + if (!c || !c->mon || !client_surface(c)->mapped || c->iskilling) return; wlr_scene_node_reparent(&c->scene->node, @@ -3956,7 +3956,7 @@ setfloating(Client *c, int floating) { void setfakefullscreen(Client *c, int fakefullscreen) { struct wlr_box fakefullscreen_box; - if (!c || !c->mon || !client_surface(c)->mapped) + if (!c || !c->mon || !client_surface(c)->mapped || c->iskilling) return; c->isfakefullscreen = fakefullscreen; @@ -4002,7 +4002,7 @@ void setfullscreen(Client *c, int fullscreen) // 用自定义全屏代理自带 { c->isfullscreen = fullscreen; - if (!c || !c->mon || !client_surface(c)->mapped) + if (!c || !c->mon || !client_surface(c)->mapped || c->iskilling) return; client_set_fullscreen(c, fullscreen);