diff options
| author | P.P.A <adolphs@moselle.moe> | 2023-07-08 12:11:18 +0200 |
|---|---|---|
| committer | P.P.A <adolphs@moselle.moe> | 2023-07-08 12:11:18 +0200 |
| commit | 51127ea186a86729364553970d53827645e4802b (patch) | |
| tree | 93f989bfdc957a81c3146af5f776087c781cfbc1 /x.c | |
| parent | 3a6d6d740110e6ee1b092d05ad746244eedabe4b (diff) | |
scrollback, -mouse, -mouse-altscreen
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 { @@ -455,6 +456,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)); |
