mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 15:25:58 +01:00
Now the mshortcuts are even more consistent.
Keep everyone happy Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
parent
e2aa03e6b7
commit
f0398db4d1
1 changed files with 5 additions and 5 deletions
10
st.c
10
st.c
|
@ -944,17 +944,17 @@ void
|
||||||
bpress(XEvent *e)
|
bpress(XEvent *e)
|
||||||
{
|
{
|
||||||
struct timespec now;
|
struct timespec now;
|
||||||
MouseShortcut *mk;
|
MouseShortcut *ms;
|
||||||
|
|
||||||
if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) {
|
if (IS_SET(MODE_MOUSE) && !(e->xbutton.state & forceselmod)) {
|
||||||
mousereport(e);
|
mousereport(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (mk = mshortcuts; mk < mshortcuts + LEN(mshortcuts); mk++) {
|
for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) {
|
||||||
if (e->xbutton.button == mk->b
|
if (e->xbutton.button == ms->b
|
||||||
&& match(mk->mask, e->xbutton.state)) {
|
&& match(ms->mask, e->xbutton.state)) {
|
||||||
ttysend(mk->s, strlen(mk->s));
|
ttysend(ms->s, strlen(ms->s));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue