diff options
Diffstat (limited to 'x.c')
| -rw-r--r-- | x.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -426,7 +426,8 @@ mouseaction(XEvent *e, uint release) | |||
| 426 | for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) { | 426 | for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) { |
| 427 | if (ms->release == release && | 427 | if (ms->release == release && |
| 428 | ms->button == e->xbutton.button && | 428 | ms->button == e->xbutton.button && |
| 429 | match(ms->mod, e->xbutton.state & ~forcemousemod)) { | 429 | (match(ms->mod, e->xbutton.state) || /* exact or forced */ |
| 430 | match(ms->mod, e->xbutton.state & ~forcemousemod))) { | ||
| 430 | ms->func(&(ms->arg)); | 431 | ms->func(&(ms->arg)); |
| 431 | return 1; | 432 | return 1; |
| 432 | } | 433 | } |
