From: Michael Stapelberg Date: Tue, 20 Jul 2010 18:52:58 +0000 (+0200) Subject: Bugfix: Correctly error out when unable to grab pointer/keyboard X-Git-Tag: 2.0~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c24922f0f2046b12a96f5cf9adc6f55f670ed990;p=i3%2Fi3lock Bugfix: Correctly error out when unable to grab pointer/keyboard --- diff --git a/xcb.c b/xcb.c index 032b523..f19d5c2 100644 --- a/xcb.c +++ b/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"); }