all repos — fluxbox @ 3a7c01abed9adbac60bdd824b43a9d79ec064dea

custom fork of the fluxbox windowmanager

fix time type affecting double click on fbwinframe
simonb simonb
commit

3a7c01abed9adbac60bdd824b43a9d79ec064dea

parent

0780952b102b48e4448bbd514dad6297899be1e4

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

jump to
M ChangeLogChangeLog

@@ -1,6 +1,9 @@

(Format: Year/Month/Day) Changes for 0.9.16: *06/04/14: + * Fix type of last_release_time, affected double click functions + on 64-bit platforms (sf.net #1467871, thanks davidhi) (Simon) + FbWinFrame.cc * Fix updating of button state (esp stick/shade) (Simon) (sf.net #1281724, #1213257) FbTk/Button.hh/cc WinButton.cc Window.cc
M src/FbWinFrame.ccsrc/FbWinFrame.cc

@@ -856,7 +856,7 @@

if (event.button < 1 || event.button > 5) return; - static int last_release_time = 0; + static Time last_release_time = 0; bool double_click = (event.time - last_release_time <= m_double_click_time); last_release_time = event.time; int real_button = event.button - 1;