unmap里标记好已经要删除

This commit is contained in:
DreamMaoMao 2025-02-08 20:20:47 +08:00
parent 085971a074
commit 303802498b

2
main.c
View file

@ -4835,6 +4835,8 @@ void unmapnotify(struct wl_listener *listener, void *data) {
/* Called when the surface is unmapped, and should no longer be shown. */ /* Called when the surface is unmapped, and should no longer be shown. */
Client *c = wl_container_of(listener, c, unmap); Client *c = wl_container_of(listener, c, unmap);
c->iskilling = 1;
if (c == grabc) { if (c == grabc) {
cursor_mode = CurNormal; cursor_mode = CurNormal;
grabc = NULL; grabc = NULL;