diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-28 09:29:28 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-28 09:29:28 +0000 |
| commit | c3e80452f0fd387b894f36b27b1e2f75b95e06bc (patch) | |
| tree | 367e5ca2c1718aed14c848a11a2d1b8c1c13fe0c /plugins | |
| parent | 663102cf530b222e2bc309a9d2c2ddfc08ce128f (diff) | |
set lbutton from clicks
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/mouse/mouse.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mouse/mouse.c b/plugins/mouse/mouse.c index e2571379..1f0a4482 100644 --- a/plugins/mouse/mouse.c +++ b/plugins/mouse/mouse.c @@ -252,8 +252,11 @@ static void event(ObEvent *e, void *foo) click =TRUE; /* double clicks happen if there were 2 in a row! */ if (lbutton == button && - e->data.x.e->xbutton.time - 300 <= ltime) + e->data.x.e->xbutton.time - 300 <= ltime) { dclick = TRUE; + lbutton = 0; + } else + lbutton = button; } else lbutton = 0; } |
