Browse Source

Merge pull request #177 from SegFault42/master

return value corrected
master
Ingo Bürk 7 years ago
committed by GitHub
parent
commit
bcbfee0a17
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      i3lock.c

3
i3lock.c

@ -807,8 +807,7 @@ static void raise_loop(xcb_window_t window) {
xcb_generic_event_t *event; xcb_generic_event_t *event;
int screens; int screens;
if ((conn = xcb_connect(NULL, &screens)) == NULL || if (xcb_connection_has_error((conn = xcb_connect(NULL, &screens))) > 0)
xcb_connection_has_error(conn))
errx(EXIT_FAILURE, "Cannot open display\n"); errx(EXIT_FAILURE, "Cannot open display\n");
/* We need to know about the window being obscured or getting destroyed. */ /* We need to know about the window being obscured or getting destroyed. */

Loading…
Cancel
Save