Adding universcroll patch ref. #21

This commit is contained in:
bakkeby 2021-05-08 17:49:04 +02:00
parent a1303a8811
commit a5435903d4
11 changed files with 36 additions and 12 deletions

3
x.c
View file

@ -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));