win: assert server is grabbed in win_recheck_client

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

View File

@ -1078,6 +1078,7 @@ static xcb_window_t find_client_win(session_t *ps, xcb_window_t w) {
* @param w struct _win of the parent window * @param w struct _win of the parent window
*/ */
void win_recheck_client(session_t *ps, struct managed_win *w) { void win_recheck_client(session_t *ps, struct managed_win *w) {
assert(ps->server_grabbed);
// Initialize wmwin to false // Initialize wmwin to false
w->wmwin = false; w->wmwin = false;