Don't report release events for mouse wheel
authorBalazs Kezes <rlblaster@gmail.com>
Sat, 31 May 2014 21:24:58 +0000 (22:24 +0100)
committerChristoph Lohmann <20h@r-36.net>
Sun, 1 Jun 2014 13:57:03 +0000 (15:57 +0200)
Signed-off-by: Christoph Lohmann <20h@r-36.net>
st.c

diff --git a/st.c b/st.c
index f48dab4..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;
                }
        }