X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=546db41bc836438cc71fb6d60295fc81d59ae8c8;hb=8c5ba1cfb09edc12d4992df4667c6ea2a476c82f;hp=b221f337c817272db0a621c0e8dacf41f6c4f7d0;hpb=984c12d2a67fd19ee69b35152d93de8cb67595e8;p=st.git diff --git a/st.c b/st.c index b221f33..546db41 100644 --- a/st.c +++ b/st.c @@ -89,7 +89,7 @@ char *argv0; #define VT102ID "\033[?6c" enum glyph_attribute { - ATTR_NULL = 0, + ATTR_NULL = 0, ATTR_BOLD = 1, ATTR_FAINT = 2, ATTR_ITALIC = 4, @@ -3786,6 +3786,8 @@ run(void) { /* Waiting for window mapping */ while(1) { XNextEvent(xw.dpy, &ev); + if(XFilterEvent(&ev, None)) + continue; if(ev.type == ConfigureNotify) { w = ev.xconfigure.width; h = ev.xconfigure.height;