X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/984c12d2a67fd19ee69b35152d93de8cb67595e8..3949aa7c5db6db76e545f6201b1c49f1b91fb245:/st.c 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;