event: reparent: mark frame CLIENT_STALE when old client detached
Related: #299 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
660d16f555
commit
3765c13baa
|
@ -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);
|
ev->window, ev->parent, ev->override_redirect);
|
||||||
auto w_top = find_toplevel(ps, ev->window);
|
auto w_top = find_toplevel(ps, ev->window);
|
||||||
if (w_top) {
|
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) {
|
if (ev->parent == ps->root) {
|
||||||
|
|
Loading…
Reference in New Issue