mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
makes no sense to set an error handler which uses X_Dpy before XOpenDisplay.
This commit is contained in:
parent
6296efadaa
commit
b5f6bd205c
2
calmwm.c
2
calmwm.c
@ -129,8 +129,6 @@ dpy_init(const char *dpyname)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
XSetErrorHandler(x_errorhandler);
|
|
||||||
|
|
||||||
if ((X_Dpy = XOpenDisplay(dpyname)) == NULL)
|
if ((X_Dpy = XOpenDisplay(dpyname)) == NULL)
|
||||||
errx(1, "unable to open display \"%s\"",
|
errx(1, "unable to open display \"%s\"",
|
||||||
XDisplayName(dpyname));
|
XDisplayName(dpyname));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user