Browse Source

Bugfix: Correctly error out when unable to grab pointer/keyboard

master
Michael Stapelberg 15 years ago
parent
commit
c24922f0f2
  1. 2
      xcb.c

2
xcb.c

@ -177,6 +177,6 @@ void grab_pointer_and_keyboard(xcb_connection_t *conn, xcb_screen_t *screen) {
} }
} }
if (tries == 0) if (tries <= 0)
errx(EXIT_FAILURE, "Cannot grab pointer/keyboard"); errx(EXIT_FAILURE, "Cannot grab pointer/keyboard");
} }

Loading…
Cancel
Save