summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-07-08 11:13:33 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-07-08 11:13:33 -0400
commit3f51ba298c70c346ed1f8257c5e180a074d6ff9b (patch)
treebe065d58b583c869198111368a3132eaa5d1204a /x.c
parent222eac739d43c7a380b9a37db91bf61ed8dbc65a (diff)
parentcf0807b3e97b4abe6c57ee512cd001a53ed05c81 (diff)
Merge branch 'dennisleexyz-mouse'
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;
+ }
}
}