diff --git a/src/mainx.c b/src/mainx.c index c0fb6581..cadd5125 100644 --- a/src/mainx.c +++ b/src/mainx.c @@ -144,6 +144,9 @@ int main(int argc, char *argv[], char *env[]) { conn = xcb_connect(NULL, &screens); + if (xcb_connection_has_error(conn)) + die("Cannot open display\n"); + load_configuration(conn, override_configpath); /* Place requests for the atoms we need as soon as possible */