event: destroy: set pending_updates after mark window CLIENT_STALE

Fixes test failure in test issue299

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2020-04-11 02:53:37 +01:00
parent 7e29bb85e7
commit 8759fc6460
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 1 additions and 0 deletions

View File

@ -277,6 +277,7 @@ static inline void ev_destroy_notify(session_t *ps, xcb_destroy_notify_event_t *
} else if (mw != NULL) {
win_unmark_client(ps, mw);
win_set_flags(mw, WIN_FLAGS_CLIENT_STALE);
ps->pending_updates = true;
} else {
log_debug("Received a destroy notify from an unknown window, %#010x",
ev->window);