From 55f0aa8f28c156562156782a3080f073f6aae5e2 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 11 Jun 2009 03:30:26 +0200 Subject: [PATCH] =?utf8?q?Add=20a=20proper=20error=20message=20if=20connec?= =?utf8?q?tion=20to=20the=20X=20server=20can=E2=80=99t=20be=20established?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/mainx.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.39.5