]> git.armaanb.net Git - st.git/blobdiff - x.c
mouse shortcuts: allow using forcemousemod (e.g. shift)
[st.git] / x.c
diff --git a/x.c b/x.c
index 8f570c25ef7e45ac40bb776f2fc84e0ed6615d02..6406925403da90fd3fa01967e89c1ac47b9772c8 100644 (file)
--- a/x.c
+++ b/x.c
@@ -426,7 +426,8 @@ mouseaction(XEvent *e, uint release)
        for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) {
                if (ms->release == release &&
                    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));
                        return 1;
                }