JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Don't report release events for mouse wheel
[st.git] / st.c
diff --git a/st.c b/st.c
index 506be0f..79a4e0a 100644 (file)
--- a/st.c
+++ b/st.c
@@ -829,6 +829,8 @@ mousereport(XEvent *e) {
                        /* MODE_MOUSEX10: no button release reporting */
                        if(IS_SET(MODE_MOUSEX10))
                                return;
+                       if (button == 64 || button == 65)
+                               return;
                }
        }
 
@@ -3149,8 +3151,13 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) {
                if(BETWEEN(base.fg, 0, 7))
                        fg = &dc.col[base.fg + 8];
 
-               font = &dc.bfont;
-               frcflags = FRC_BOLD;
+               if(base.mode & ATTR_ITALIC) {
+                       font = &dc.ibfont;
+                       frcflags = FRC_ITALICBOLD;
+               } else {
+                       font = &dc.bfont;
+                       frcflags = FRC_BOLD;
+               }
        }
 
        if(IS_SET(MODE_REVERSE)) {