diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/gamma-x-randr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/gamma-x-randr.c b/src/lib/gamma-x-randr.c index 9e8a8a0..fb002fc 100644 --- a/src/lib/gamma-x-randr.c +++ b/src/lib/gamma-x-randr.c @@ -195,7 +195,7 @@ int libgamma_x_randr_site_initialise(libgamma_site_state_t* restrict this, /* Connect to the display server. */ this->data = connection = xcb_connect(site, NULL); - if (connection == NULL) + if (connection == NULL || xcb_connection_has_error(connection)) return LIBGAMMA_OPEN_SITE_FAILED; /* Query the version of the X RandR extension protocol. */ |