mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
Print libxcb error codes for broken connections
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
80aa6b1922
commit
6a669a8775
1 changed files with 3 additions and 2 deletions
|
@ -207,7 +207,8 @@ a_xcb_io_cb(GIOChannel *source, GIOCondition cond, gpointer data)
|
|||
/* a_xcb_check() already handled all events */
|
||||
|
||||
if(xcb_connection_has_error(globalconf.connection))
|
||||
fatal("X server connection broke");
|
||||
fatal("X server connection broke (error %d)",
|
||||
xcb_connection_has_error(globalconf.connection));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -381,7 +382,7 @@ main(int argc, char **argv)
|
|||
/* X stuff */
|
||||
globalconf.connection = xcb_connect(NULL, &globalconf.default_screen);
|
||||
if(xcb_connection_has_error(globalconf.connection))
|
||||
fatal("cannot open display");
|
||||
fatal("cannot open display (error %d)", xcb_connection_has_error(globalconf.connection));
|
||||
|
||||
globalconf.screen = xcb_aux_get_screen(globalconf.connection, globalconf.default_screen);
|
||||
globalconf.default_visual = draw_default_visual(globalconf.screen);
|
||||
|
|
Loading…
Reference in a new issue