sam: don't make scroll-wheel-up change focus (thanks clsmith)
This commit is contained in:
parent
da689241d0
commit
e9c9ea4235
1 changed files with 13 additions and 15 deletions
|
@ -99,21 +99,19 @@ threadmain(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
}else if(mousep->buttons&(1|8)){
|
||||
if(nwhich){
|
||||
if(nwhich!=which)
|
||||
current(nwhich);
|
||||
else if(scr)
|
||||
scroll(which, (mousep->buttons&8) ? 4 : 1);
|
||||
else{
|
||||
t=(Text *)which->user1;
|
||||
if(flselect(which)){
|
||||
outTsl(Tdclick, t->tag, which->p0);
|
||||
t->lock++;
|
||||
}else if(t!=&cmd)
|
||||
outcmd();
|
||||
if(mousep->buttons&1)
|
||||
chord = mousep->buttons;
|
||||
}
|
||||
if(scr)
|
||||
scroll(which, (mousep->buttons&8) ? 4 : 1);
|
||||
else if(nwhich && nwhich!=which)
|
||||
current(nwhich);
|
||||
else{
|
||||
t=(Text *)which->user1;
|
||||
if(flselect(which)){
|
||||
outTsl(Tdclick, t->tag, which->p0);
|
||||
t->lock++;
|
||||
}else if(t!=&cmd)
|
||||
outcmd();
|
||||
if(mousep->buttons&1)
|
||||
chord = mousep->buttons;
|
||||
}
|
||||
}else if((mousep->buttons&2) && which){
|
||||
if(scr)
|
||||
|
|
Loading…
Reference in a new issue