This commit is contained in:
Cassandra 2018-03-21 16:25:11 -04:00
commit 3131486378
1 changed files with 6 additions and 0 deletions

6
xcb.c
View File

@ -236,6 +236,9 @@ bool grab_pointer_and_keyboard(xcb_connection_t *conn, xcb_screen_t *screen, xcb
break;
}
/* In case the grab failed, we still need to free the reply */
free(preply);
/* Make this quite a bit slower */
usleep(50);
@ -270,6 +273,9 @@ bool grab_pointer_and_keyboard(xcb_connection_t *conn, xcb_screen_t *screen, xcb
break;
}
/* In case the grab failed, we still need to free the reply */
free(kreply);
/* Make this quite a bit slower */
usleep(50);