sam: don't make scroll-wheel-up change focus (thanks clsmith)

This commit is contained in:
cinap_lenrek 2015-04-28 19:32:21 +02:00
parent da689241d0
commit e9c9ea4235

View file

@ -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)