i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit bcbfee0a1777c301cd4b6e423b1212d718092355
parent b34ae89d309f24b6604aefa59ace72039b6da354
Author: Ingo Bürk <admin@airblader.de>
Date:   Tue, 13 Feb 2018 10:59:30 +0100

Merge pull request #177 from SegFault42/master

return value corrected
Diffstat:
Mi3lock.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/i3lock.c b/i3lock.c
@@ -807,8 +807,7 @@ static void raise_loop(xcb_window_t window) {
     xcb_generic_event_t *event;
     int screens;
 
-    if ((conn = xcb_connect(NULL, &screens)) == NULL ||
-        xcb_connection_has_error(conn))
+    if (xcb_connection_has_error((conn = xcb_connect(NULL, &screens))) > 0)
         errx(EXIT_FAILURE, "Cannot open display\n");
 
     /* We need to know about the window being obscured or getting destroyed. */