aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term
diff options
context:
space:
mode:
authorTony Lainson <t.lainson@gmail.com>2009-08-11 11:11:58 -0400
committerTony Lainson <t.lainson@gmail.com>2009-08-11 11:11:58 -0400
commit3b7ca01f981115207ddee1b91085595a3ccb608a (patch)
treed4126773746877dd0b6e11f0d82e77f3d849f745 /src/cmd/9term
parentf2887b9de88173031f52492147ba68e5ca94f719 (diff)
downloadplan9port-3b7ca01f981115207ddee1b91085595a3ccb608a.tar.gz
plan9port-3b7ca01f981115207ddee1b91085595a3ccb608a.tar.bz2
plan9port-3b7ca01f981115207ddee1b91085595a3ccb608a.zip
9term: allow scroll wheel in main window
http://codereview.appspot.com/105082
Diffstat (limited to 'src/cmd/9term')
-rw-r--r--src/cmd/9term/9term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c
index 7430c49c..4ca833f5 100644
--- a/src/cmd/9term/9term.c
+++ b/src/cmd/9term/9term.c
@@ -216,7 +216,7 @@ mousethread(void *v)
send(w->mc.c, &tmp);
continue;
}
- if((mouse->buttons&1) || ptinrect(mouse->xy, w->scrollr)){
+ if((mouse->buttons&(1|8|16)) || ptinrect(mouse->xy, w->scrollr)){
sending = TRUE;
goto Send;
}else if(mouse->buttons&2)