diff options
author | Ivan Tham <pickfire@riseup.net> | 2015-11-01 10:53:56 +0800 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2015-11-01 08:23:26 +0100 |
commit | f0398db4d172e838ef4b4ae55db3fb6a6fee6717 (patch) | |
tree | 6572273479ea008f6e5ea2f4603fb5ff6fd1d3a9 | |
parent | e2aa03e6b71436e1c9207b01777baa16b7a00ea5 (diff) | |
download | st-patched-f0398db4d172e838ef4b4ae55db3fb6a6fee6717.tar.bz2 st-patched-f0398db4d172e838ef4b4ae55db3fb6a6fee6717.tar.xz st-patched-f0398db4d172e838ef4b4ae55db3fb6a6fee6717.zip |
Now the mshortcuts are even more consistent.
Keep everyone happy
Signed-off-by: Christoph Lohmann <20h@r-36.net>
-rw-r--r-- | st.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -944,17 +944,17 @@ void | |||
944 | bpress(XEvent *e) | 944 | bpress(XEvent *e) |
945 | { | 945 | { |
946 | struct timespec now; | 946 | struct timespec now; |
947 | MouseShortcut *mk; | 947 | MouseShortcut *ms; |
948 | 948 | ||
949 | if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) { | 949 | if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) { |
950 | mousereport(e); | 950 | mousereport(e); |
951 | return; | 951 | return; |
952 | } | 952 | } |
953 | 953 | ||
954 | for (mk = mshortcuts; mk < mshortcuts + LEN(mshortcuts); mk++) { | 954 | for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) { |
955 | if (e->xbutton.button == mk->b | 955 | if (e->xbutton.button == ms->b |
956 | && match(mk->mask, e->xbutton.state)) { | 956 | && match(ms->mask, e->xbutton.state)) { |
957 | ttysend(mk->s, strlen(mk->s)); | 957 | ttysend(ms->s, strlen(ms->s)); |
958 | return; | 958 | return; |
959 | } | 959 | } |
960 | } | 960 | } |