diff options
| author | Jake Koroman <jake@jakekoroman.com> | 2026-03-17 13:13:52 -0400 |
|---|---|---|
| committer | Jake Koroman <jake@jakekoroman.com> | 2026-03-17 13:23:42 -0400 |
| commit | b6ed34f7a018d3c5442584062df38db69dbbd88a (patch) | |
| tree | 2cfe006640641271691d97fe12577ff685fe6913 /x.c | |
| parent | 1db7ecac6613f5bcba76b24b5eef7ab560df573f (diff) | |
Diffstat (limited to 'x.c')
| -rw-r--r-- | x.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -34,6 +34,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 { @@ -467,6 +468,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)); |
