summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorDennis Lee <dennis@dennislee.xyz>2020-06-30 18:01:26 -0700
committerDennis Lee <dennis@dennislee.xyz>2020-06-30 18:33:15 -0700
commitcf0807b3e97b4abe6c57ee512cd001a53ed05c81 (patch)
treebe065d58b583c869198111368a3132eaa5d1204a /x.c
parent222eac739d43c7a380b9a37db91bf61ed8dbc65a (diff)
use st-scrollback-mouse-altscreen-20190131-e23acb9
Diffstat (limited to 'x.c')
-rw-r--r--x.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/x.c b/x.c
index c1f050b..3a99646 100644
--- a/x.c
+++ b/x.c
@@ -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;
+ }
}
}