From c3e80452f0fd387b894f36b27b1e2f75b95e06bc Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 28 Mar 2003 09:29:28 +0000 Subject: [PATCH] set lbutton from clicks --- plugins/mouse/mouse.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.45.2