st-flexipatch

My st-flexipatch configuration
git clone git://git.ethandl.dev/st-flexipatch
Log | Files | Refs | README | LICENSE

commit c90ac5e47617658427d7c816766c76e7ec76520f
parent 0cdfd86e5eda55f2545fa375e93c775ceddaa8e1
Author: bakkeby <bakkeby@gmail.com>
Date:   Tue, 24 Mar 2020 14:16:02 +0100

mouse shortcuts: allow using forcemousemod (e.g. shift) (4c7150)

Diffstat:
Mx.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/x.c b/x.c @@ -396,8 +396,9 @@ 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)) { + ms->button == e->xbutton.button && + (match(ms->mod, e->xbutton.state) || /* exact or forced */ + match(ms->mod, e->xbutton.state & ~forcemousemod))) { ms->func(&(ms->arg)); return 1; }