This should fix a race condition where the Mod-key was not released
in time when starting i3lock using a key combination.
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <assert.h>
#include <err.h>
#include <assert.h>
#include <err.h>
xcb_grab_keyboard_cookie_t kcookie;
xcb_grab_keyboard_reply_t *kreply;
xcb_grab_keyboard_cookie_t kcookie;
xcb_grab_keyboard_reply_t *kreply;
while (tries-- > 0) {
pcookie = xcb_grab_pointer(
while (tries-- > 0) {
pcookie = xcb_grab_pointer(
+
+ /* Make this quite a bit slower */
+ usleep(50);
+
+ /* Make this quite a bit slower */
+ usleep(50);