Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
e2aa03e
)
Now the mshortcuts are even more consistent.
author
Ivan Tham <
[email protected]
>
Sun, 1 Nov 2015 02:53:56 +0000
(10:53 +0800)
committer
Christoph Lohmann <
[email protected]
>
Sun, 1 Nov 2015 07:23:26 +0000
(08:23 +0100)
Keep everyone happy
Signed-off-by: Christoph Lohmann <
[email protected]
>
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
386e6c0
..
65a1866
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-944,17
+944,17
@@
void
bpress(XEvent *e)
{
struct timespec now;
bpress(XEvent *e)
{
struct timespec now;
- MouseShortcut *m
k
;
+ MouseShortcut *m
s
;
if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) {
mousereport(e);
return;
}
if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) {
mousereport(e);
return;
}
- for (m
k = mshortcuts; mk < mshortcuts + LEN(mshortcuts); mk
++) {
- if (e->xbutton.button == m
k
->b
- && match(m
k
->mask, e->xbutton.state)) {
- ttysend(m
k->s, strlen(mk
->s));
+ for (m
s = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms
++) {
+ if (e->xbutton.button == m
s
->b
+ && match(m
s
->mask, e->xbutton.state)) {
+ ttysend(m
s->s, strlen(ms
->s));
return;
}
}
return;
}
}