diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2010-07-20 20:52:58 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2010-07-20 20:52:58 +0200 |
commit | c24922f0f2046b12a96f5cf9adc6f55f670ed990 (patch) | |
tree | e3f364a4618da6d0c5ff7b5aa90b43b19a1b121d /xcb.c | |
parent | 4e5c203cd937348f45dffe901deb11bb939a794b (diff) |
Bugfix: Correctly error out when unable to grab pointer/keyboard
Diffstat (limited to 'xcb.c')
-rw-r--r-- | xcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); } |