commit c24922f0f2046b12a96f5cf9adc6f55f670ed990
parent 4e5c203cd937348f45dffe901deb11bb939a794b
Author: Michael Stapelberg <michael@stapelberg.de>
Date: Tue, 20 Jul 2010 20:52:58 +0200
Bugfix: Correctly error out when unable to grab pointer/keyboard
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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");
}