X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/d2b75db8d7519a20af8bf09e9c205507f9ff828c..a2c479c4c8d035c11a91e4b954a9f161bf4c7150:/x.c?ds=sidebyside 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) 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; }