]> Dogcows Code - chaz/openbox/commitdiff
set lbutton from clicks
authorDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 09:29:28 +0000 (09:29 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 28 Mar 2003 09:29:28 +0000 (09:29 +0000)
plugins/mouse/mouse.c

index e25713798363bb918bbefc21ff895d3ba9b8ce24..1f0a448288089eab81dcc867ad72290bebe36b6c 100644 (file)
@@ -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;
             }
This page took 0.024688 seconds and 4 git commands to generate.