From e341267e8a8b7a6e3fcf1f9813c8ce29909712d8 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 11 Apr 2020 02:16:33 +0100 Subject: [PATCH] event: reparent: unmark client from previous frame Don't just mark it as CLIENT_STALE. To make sure we don't later find the old frame window as the frame of the client. Fix assertion failure in ev_destroy_notify. Signed-off-by: Yuxuan Shui --- src/event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/event.c b/src/event.c index c763552..31026b7 100644 --- a/src/event.c +++ b/src/event.c @@ -320,6 +320,7 @@ static inline void ev_reparent_notify(session_t *ps, xcb_reparent_notify_event_t ev->window, ev->parent, ev->override_redirect); auto w_top = find_toplevel(ps, ev->window); if (w_top) { + win_unmark_client(ps, w_top); win_set_flags(w_top, WIN_FLAGS_CLIENT_STALE); ps->pending_updates = true; }