set lbutton from clicks
This commit is contained in:
parent
663102cf53
commit
c3e80452f0
1 changed files with 4 additions and 1 deletions
|
@ -252,8 +252,11 @@ static void event(ObEvent *e, void *foo)
|
||||||
click =TRUE;
|
click =TRUE;
|
||||||
/* double clicks happen if there were 2 in a row! */
|
/* double clicks happen if there were 2 in a row! */
|
||||||
if (lbutton == button &&
|
if (lbutton == button &&
|
||||||
e->data.x.e->xbutton.time - 300 <= ltime)
|
e->data.x.e->xbutton.time - 300 <= ltime) {
|
||||||
dclick = TRUE;
|
dclick = TRUE;
|
||||||
|
lbutton = 0;
|
||||||
|
} else
|
||||||
|
lbutton = button;
|
||||||
} else
|
} else
|
||||||
lbutton = 0;
|
lbutton = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue