From c24922f0f2046b12a96f5cf9adc6f55f670ed990 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 20 Jul 2010 20:52:58 +0200 Subject: [PATCH] Bugfix: Correctly error out when unable to grab pointer/keyboard --- xcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- 2.39.5