[hackers] [st] This is a shorter bit handling in MODE_MOUSE. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sat, 01 Jun 2013 13:18:56 +0200

commit d743b93fdaee4900052a94b37c24073008888002
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sat Jun 1 13:17:20 2013 +0200

    This is a shorter bit handling in MODE_MOUSE.

diff --git a/st.c b/st.c
index a032474..bcb36a2 100644
--- a/st.c
+++ b/st.c
_AT_@ -1784,8 +1784,7 @@ tsetmode(bool priv, bool set, int *args, int narg) {
                                 MODBIT(term.mode, 0, MODE_MOUSEBTN);
                                 break;
                         case 1003: /* 1003: enable all mouse reports */
- MODBIT(term.mode, set, MODE_MOUSEMOTION);
- MODBIT(term.mode, set, MODE_MOUSEBTN);
+ MODBIT(term.mode, set, MODE_MOUSE);
                                 break;
                         case 1004:
                                 MODBIT(term.mode, set, MODE_FOCUS);
Received on Sat Jun 01 2013 - 13:18:56 CEST

This archive was generated by hypermail 2.3.0 : Sat Jun 01 2013 - 13:24:10 CEST