diff --git a/client.c b/client.c index 00c858e1..eedd1a6d 100644 --- a/client.c +++ b/client.c @@ -695,7 +695,7 @@ client_unmanage(client_t *c) XCB_BUTTON_MASK_ANY); window_state_set(c->win, XCB_WM_WITHDRAWN_STATE); - xcb_flush(c); + xcb_flush(globalconf.connection); xcb_ungrab_server(globalconf.connection); /* remove client everywhere */