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

pull/1/head
Michael Stapelberg 2010-07-20 20:52:58 +02:00
parent 4e5c203cd9
commit c24922f0f2
1 changed files with 1 additions and 1 deletions

2
xcb.c
View File

@ -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");
}