diff options
| author | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2023-01-04 13:26:47 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <doug@douglasrumbaugh.com> | 2023-01-04 13:31:13 -0500 |
| commit | 150dacf63c03d112ead9aa25c374373d785d202e (patch) | |
| tree | af9d250991a320976091104689fcc7e6f41c35c9 /x.c | |
| parent | 7fd24679e974c55b7593bb3119f887a155928ed3 (diff) | |
| download | st-150dacf63c03d112ead9aa25c374373d785d202e.tar.gz | |
Applied mouse scrolling patches
Diffstat (limited to 'x.c')
| -rw-r--r-- | x.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -37,6 +37,7 @@ typedef struct { void (*func)(const Arg *); const Arg arg; uint release; + int altscrn; /* 0: don't care, -1: not alt screen, 1: alt screen */ } MouseShortcut; typedef struct { @@ -474,6 +475,7 @@ mouseaction(XEvent *e, uint release) for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) { if (ms->release == release && ms->button == e->xbutton.button && + (!ms->altscrn || (ms->altscrn == (tisaltscr() ? 1 : -1))) && (match(ms->mod, state) || /* exact or forced */ match(ms->mod, state & ~forcemousemod))) { ms->func(&(ms->arg)); |