Pass NULL to XkbOpenDisplay, it will read $DISPLAY itself
This commit is contained in:
parent
3892d616cf
commit
72ef8a7c19
@ -506,11 +506,7 @@ char *init_xcb(char *fontname) {
|
||||
xkb_major = XkbMajorVersion;
|
||||
xkb_minor = XkbMinorVersion;
|
||||
|
||||
char *dispname = getenv("DISPLAY");
|
||||
if (dispname == NULL) {
|
||||
dispname = ":0";
|
||||
}
|
||||
xkb_dpy = XkbOpenDisplay(dispname,
|
||||
xkb_dpy = XkbOpenDisplay(NULL,
|
||||
&xkb_event_base,
|
||||
&xkb_errbase,
|
||||
&xkb_major,
|
||||
|
Loading…
x
Reference in New Issue
Block a user