From cf0807b3e97b4abe6c57ee512cd001a53ed05c81 Mon Sep 17 00:00:00 2001 From: Dennis Lee Date: Tue, 30 Jun 2020 18:01:26 -0700 Subject: use st-scrollback-mouse-altscreen-20190131-e23acb9 --- x.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'x.c') 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; + } } } -- cgit v1.2.3