summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xcb.c2
1 files changed, 1 insertions, 1 deletions
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");
}