use st-scrollback-mouse-altscreen-20190131-e23acb9

This commit is contained in:
Dennis Lee
2020-06-30 18:01:26 -07:00
parent 222eac739d
commit cf0807b3e9
4 changed files with 15 additions and 9 deletions

12
x.c
View File

@ -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;
}
}
}