diff --git a/src/event.c b/src/event.c index 80d6067..5150e9a 100644 --- a/src/event.c +++ b/src/event.c @@ -275,7 +275,8 @@ static inline void ev_destroy_notify(session_t *ps, xcb_destroy_notify_event_t * if (w != NULL) { auto _ attr_unused = destroy_win_start(ps, w); } else if (mw != NULL) { - win_recheck_client(ps, mw); + win_unmark_client(ps, mw); + win_set_flags(mw, WIN_FLAGS_CLIENT_STALE); } else { log_debug("Received a destroy notify from an unknown window, %#010x", ev->window);