mothra: fix select boxes in textview
This commit is contained in:
parent
7a91a85509
commit
67f3dbdaee
|
@ -74,6 +74,7 @@ int pl_hittextview(Panel *p, Mouse *m){
|
|||
else if(m->buttons&7){
|
||||
p->state=DOWN;
|
||||
tp->buttons=m->buttons;
|
||||
if(oldhitword==0 || oldhitword->p==0 || (oldhitword->p->flags&REMOUSE)==0){
|
||||
ul=p->r.min;
|
||||
size=subpt(p->r.max, p->r.min);
|
||||
pl_interior(p->state, &ul, &size);
|
||||
|
@ -86,6 +87,7 @@ int pl_hittextview(Panel *p, Mouse *m){
|
|||
if(tp->hitword!=0 && oldstate!=DOWN)
|
||||
tp->hitfirst=tp->hitword;
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(p->state==DOWN) hitme=1;
|
||||
p->state=UP;
|
||||
|
|
Loading…
Reference in a new issue