diff options
| -rw-r--r-- | TODO | 1 | ||||
| -rw-r--r-- | st.c | 4 | 
2 files changed, 4 insertions, 1 deletions
| @@ -17,7 +17,6 @@ code & interface  bugs  ---- -* handle XOpenMI() errors  * fix shift up/down (shift selection in emacs)  * fix selection paste for xatom STRING  * fix umlaut handling in settitle @@ -2431,9 +2431,13 @@ xinit(void) {  	/* input methods */  	xw.xim = XOpenIM(xw.dpy, NULL, NULL, NULL); +	if(xw.xim == NULL) +		die("XOpenIM failed. Could not open input device.\n");  	xw.xic = XCreateIC(xw.xim, XNInputStyle, XIMPreeditNothing  					   | XIMStatusNothing, XNClientWindow, xw.win,  					   XNFocusWindow, xw.win, NULL); +	if(xw.xic == NULL) +		die("XCreateIC failed. Could not obtain input method.\n");  	/* white cursor, black outline */  	cursor = XCreateFontCursor(xw.dpy, XC_xterm); | 
