aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/x.c b/x.c
index 8f570c2..6406925 100644
--- a/x.c
+++ b/x.c
@@ -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 }