mirror of
https://github.com/Raymo111/i3lock-color.git
synced 2024-11-11 13:50:52 -05:00
return value corrected
This commit is contained in:
parent
b34ae89d30
commit
7a80375e1f
1 changed files with 1 additions and 2 deletions
3
i3lock.c
3
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. */
|
||||
|
|
Loading…
Reference in a new issue