From 3b7ca01f981115207ddee1b91085595a3ccb608a Mon Sep 17 00:00:00 2001 From: Tony Lainson Date: Tue, 11 Aug 2009 11:11:58 -0400 Subject: 9term: allow scroll wheel in main window http://codereview.appspot.com/105082 --- src/cmd/9term/9term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/9term/9term.c') 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) -- cgit v1.2.3