removed XINERAMA from config.mk and fixed a segfault when st is

started without a display. (thx Hiltjo Posthuma)
This commit is contained in:
Aurélien Aptel
2010-08-27 13:53:27 +02:00
parent fec59f7370
commit fa6a9216a1
2 changed files with 4 additions and 9 deletions

5
st.c
View File

@ -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)))