From f0fbc803e2ba3f8b57e1b00dbda4fdd814ef8005 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sat, 8 Feb 2025 09:03:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=97=A0=E5=85=B3=E7=B4=A7?= =?UTF-8?q?=E8=A6=81=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.c | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/main.c b/main.c index aef7f6f3..b51b8679 100644 --- a/main.c +++ b/main.c @@ -2888,39 +2888,7 @@ keypressmod(struct wl_listener *listener, void *data) { } void pending_kill_client(Client *c) { - // c->iskilling = 1; - // c->animainit_geom = c->geom; - // c->pending = c->geom; - // c->pending.y = c->geom.y + c->mon->m.height - (c->geom.y - c->mon->m.y); - - // if (c == grabc) { - // cursor_mode = CurNormal; - // grabc = NULL; - // } - - // if (c == selmon->sel) { - // selmon->sel = NULL; - // Client *nextfocus = focustop(selmon); - - // if (nextfocus) { - // focusclient(nextfocus, 0); - // } - - // if (!nextfocus && selmon->isoverview) { - // Arg arg = {0}; - // toggleoverview(&arg); - // } - // } - - // if (c->foreign_toplevel) { - // wlr_foreign_toplevel_handle_v1_destroy(c->foreign_toplevel); - // c->foreign_toplevel = NULL; - // } - - // resize(c, c->geom, 0); - // printstatus(); - // motionnotify(0, NULL, 0, 0, 0, 0); - // arrange(selmon, false); + c->iskilling = 1; client_send_close(c); } @@ -4870,8 +4838,6 @@ void unmapnotify(struct wl_listener *listener, void *data) { /* Called when the surface is unmapped, and should no longer be shown. */ Client *c = wl_container_of(listener, c, unmap); - c->iskilling = 1; - if (c == grabc) { cursor_mode = CurNormal; grabc = NULL;