mirror of
https://github.com/mintycube/st.git
synced 2024-10-22 14:05:49 +02:00
mouse shortcuts: allow using forcemousemod (e.g. shift) (4c7150)
This commit is contained in:
parent
0cdfd86e5e
commit
c90ac5e476
3
x.c
3
x.c
@ -397,7 +397,8 @@ mouseaction(XEvent *e, uint release)
|
|||||||
for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) {
|
for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) {
|
||||||
if (ms->release == release &&
|
if (ms->release == release &&
|
||||||
ms->button == e->xbutton.button &&
|
ms->button == e->xbutton.button &&
|
||||||
match(ms->mod, e->xbutton.state & ~forcemousemod)) {
|
(match(ms->mod, e->xbutton.state) || /* exact or forced */
|
||||||
|
match(ms->mod, e->xbutton.state & ~forcemousemod))) {
|
||||||
ms->func(&(ms->arg));
|
ms->func(&(ms->arg));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user