[hackers] [st] Don't report release events for mouse wheel || Balazs Kezes

From: <git_AT_suckless.org>
Date: Sun, 01 Jun 2014 15:57:25 +0200

commit ba36d1394b3add5b9d4c174f1443cc312bcc7e09
Author: Balazs Kezes <rlblaster_AT_gmail.com>
Date: Sat May 31 22:24:58 2014 +0100

    Don't report release events for mouse wheel
    
    Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>

diff --git a/st.c b/st.c
index f48dab4..79a4e0a 100644
--- a/st.c
+++ b/st.c
_AT_@ -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;
                 }
         }
 
Received on Sun Jun 01 2014 - 15:57:25 CEST

This archive was generated by hypermail 2.3.0 : Sun Jun 01 2014 - 16:00:11 CEST