From: Dana Jansens Date: Fri, 28 Mar 2003 09:29:28 +0000 (+0000) Subject: set lbutton from clicks X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=c3e80452f0fd387b894f36b27b1e2f75b95e06bc;p=chaz%2Fopenbox set lbutton from clicks --- 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; }