From 3765c13baa26bb44940a9b9c916000822580a3fe Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 11 Apr 2020 01:05:52 +0100 Subject: [PATCH] event: reparent: mark frame CLIENT_STALE when old client detached Related: #299 Signed-off-by: Yuxuan Shui --- src/event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/event.c b/src/event.c index 69b326b..c763552 100644 --- a/src/event.c +++ b/src/event.c @@ -320,7 +320,8 @@ 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; } if (ev->parent == ps->root) {