--- st.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -r 2a0be13ebd44 -r 33c01f44bef1 st.c --- a/st.c Fri Sep 14 19:46:07 2012 +0200 +++ b/st.c Sun Sep 16 10:45:36 2012 +0200 _AT_@ -1970,7 +1970,7 @@ XSetWindowAttributes attrs; Cursor cursor; Window parent; - int sw, sh; + int sw, sh, major, minor; if(!(xw.dpy = XOpenDisplay(NULL))) die("Can't open display\n"); _AT_@ -2021,9 +2021,10 @@ CWBackPixel | CWBorderPixel | CWBitGravity | CWEventMask | CWColormap, &attrs); + if(!XdbeQueryExtension(xw.dpy, &major, &minor)) + die("Xdbe extension is not present\n"); xw.buf = XdbeAllocateBackBufferName(xw.dpy, xw.win, XdbeCopied); - /* input methods */ xw.xim = XOpenIM(xw.dpy, NULL, NULL, NULL); xw.xic = XCreateIC(xw.xim, XNInputStyle, XIMPreeditNothingReceived on Sun Sep 16 2012 - 12:25:52 CEST
This archive was generated by hypermail 2.3.0 : Sun Sep 16 2012 - 12:36:07 CEST