Adding universcroll patch ref. #21
This commit is contained in:
parent
a1303a8811
commit
a5435903d4
11 changed files with 36 additions and 12 deletions
3
x.c
3
x.c
|
|
@ -334,6 +334,9 @@ mouseaction(XEvent *e, uint release)
|
|||
for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) {
|
||||
if (ms->release == release &&
|
||||
ms->button == e->xbutton.button &&
|
||||
#if UNIVERSCROLL_PATCH
|
||||
(!ms->altscrn || (ms->altscrn == (tisaltscr() ? 1 : -1))) &&
|
||||
#endif // UNIVERSCROLL_PATCH
|
||||
(match(ms->mod, state) || /* exact or forced */
|
||||
match(ms->mod, state & ~forcemousemod))) {
|
||||
ms->func(&(ms->arg));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue