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:
oga 2008-02-13 12:09:47 +00:00
parent a936ffc470
commit 09dbddac87

View File

@ -124,7 +124,8 @@ x_setup(char *display_name)
TAILQ_INIT(&Screenq);
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);