JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Add information about librt and OpenBSD to the FAQ
[st.git] / st.c
diff --git a/st.c b/st.c
index b221f33..546db41 100644 (file)
--- 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;