1
0
Fork 0
mirror of https://github.com/Raymo111/i3lock-color.git synced 2025-02-17 15:55:52 -05:00

Merge pull request #177 from SegFault42/master

return value corrected
This commit is contained in:
Ingo Bürk 2018-02-13 10:59:30 +01:00 committed by GitHub
commit bcbfee0a17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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. */