mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Make cwm print the XDisplayName() if it fails to open the display,
instead of an error message that'll be gibberish to most people. from Gleydson Soares. Thanks! ok simon@.
This commit is contained in:
parent
a936ffc470
commit
09dbddac87
3
calmwm.c
3
calmwm.c
@ -124,7 +124,8 @@ x_setup(char *display_name)
|
|||||||
TAILQ_INIT(&Screenq);
|
TAILQ_INIT(&Screenq);
|
||||||
|
|
||||||
if ((X_Dpy = XOpenDisplay(display_name)) == NULL)
|
if ((X_Dpy = XOpenDisplay(display_name)) == NULL)
|
||||||
errx(1, "%s:%d XOpenDisplay()", __FILE__, __LINE__);
|
errx(1, "unable to open display \"%s\"",
|
||||||
|
XDisplayName(display_name));
|
||||||
|
|
||||||
XSetErrorHandler(x_errorhandler);
|
XSetErrorHandler(x_errorhandler);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user