removed XINERAMA from config.mk and fixed a segfault when st is
started without a display. (thx Hiltjo Posthuma)
This commit is contained in:
5
st.c
5
st.c
@ -1078,10 +1078,9 @@ xhints(void)
|
||||
|
||||
void
|
||||
xinit(void) {
|
||||
xw.dis = XOpenDisplay(NULL);
|
||||
xw.scr = XDefaultScreen(xw.dis);
|
||||
if(!xw.dis)
|
||||
if(!(xw.dis = XOpenDisplay(NULL)))
|
||||
die("Can't open display\n");
|
||||
xw.scr = XDefaultScreen(xw.dis);
|
||||
|
||||
/* font */
|
||||
if(!(dc.font = XLoadQueryFont(xw.dis, FONT)) || !(dc.bfont = XLoadQueryFont(xw.dis, BOLDFONT)))
|
||||
|
Reference in New Issue
Block a user