aboutsummaryrefslogtreecommitdiff
path: root/bts.c
diff options
context:
space:
mode:
Diffstat (limited to 'bts.c')
-rw-r--r--bts.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/bts.c b/bts.c
index 6d7a22e..85b8459 100644
--- a/bts.c
+++ b/bts.c
@@ -645,18 +645,18 @@ mouse(Mousectl *mc)
else
csetcursor(mctl, nil);
- switch(mc->buttons){
- case 1:
- lmb(mc);
- break;
- case 2:
- if(oldm.buttons != 2)
+ if(oldm.buttons != mc->buttons)
+ switch(mc->buttons){
+ case 1:
+ lmb(mc);
+ break;
+ case 2:
mmb(mc);
- break;
- case 4:
- rmb(mc);
- break;
- }
+ break;
+ case 4:
+ rmb(mc);
+ break;
+ }
oldm = mc->Mouse;
}