all repos — openbox @ c3e80452f0fd387b894f36b27b1e2f75b95e06bc

openbox fork - make it a bit more like ryudo

set lbutton from clicks
Dana Jansens danakj@orodu.net
commit

c3e80452f0fd387b894f36b27b1e2f75b95e06bc

parent

663102cf530b222e2bc309a9d2c2ddfc08ce128f

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M plugins/mouse/mouse.cplugins/mouse/mouse.c

@@ -252,8 +252,11 @@ e->data.x.e->xbutton.y < (signed)(h+b)) {

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; }