diff options
author | Dennis Lee <dennis@dennislee.xyz> | 2020-06-30 18:01:26 -0700 |
---|---|---|
committer | Dennis Lee <dennis@dennislee.xyz> | 2020-06-30 18:33:15 -0700 |
commit | cf0807b3e97b4abe6c57ee512cd001a53ed05c81 (patch) | |
tree | be065d58b583c869198111368a3132eaa5d1204a /x.c | |
parent | 222eac739d43c7a380b9a37db91bf61ed8dbc65a (diff) |
use st-scrollback-mouse-altscreen-20190131-e23acb9
Diffstat (limited to 'x.c')
-rw-r--r-- | x.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -442,11 +442,13 @@ bpress(XEvent *e) return; } - for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) { - if (e->xbutton.button == ms->b - && match(ms->mask, e->xbutton.state)) { - ttywrite(ms->s, strlen(ms->s), 1); - return; + if (tisaltscr()) { + for (ms = mshortcuts; ms < mshortcuts + LEN(mshortcuts); ms++) { + if (e->xbutton.button == ms->b + && match(ms->mask, e->xbutton.state)) { + ttywrite(ms->s, strlen(ms->s), 1); + return; + } } } |