[hackers] [st] Now the mshortcuts are even more consistent. || Ivan Tham

From: <git_AT_suckless.org>
Date: Sun, 1 Nov 2015 08:23:55 +0100 (CET)

commit f0398db4d172e838ef4b4ae55db3fb6a6fee6717
Author: Ivan Tham <pickfire_AT_riseup.net>
AuthorDate: Sun Nov 1 10:53:56 2015 +0800
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Sun Nov 1 08:23:26 2015 +0100

    Now the mshortcuts are even more consistent.
    
        Keep everyone happy
    
    Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>

diff --git a/st.c b/st.c
index 386e6c0..65a1866 100644
--- a/st.c
+++ b/st.c
_AT_@ -944,17 +944,17 @@ void
 bpress(XEvent *e)
 {
         struct timespec now;
- MouseShortcut *mk;
+ MouseShortcut *ms;
 
         if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) {
                 mousereport(e);
                 return;
         }
 
- for (mk = mshortcuts; mk < mshortcuts + LEN(mshortcuts); mk++) {
- if (e->xbutton.button == mk->b
- && match(mk->mask, e->xbutton.state)) {
- ttysend(mk->s, strlen(mk->s));
+ for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) {
+ if (e->xbutton.button == ms->b
+ && match(ms->mask, e->xbutton.state)) {
+ ttysend(ms->s, strlen(ms->s));
                         return;
                 }
         }
Received on Sun Nov 01 2015 - 08:23:55 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 01 2015 - 08:24:11 CET