fix time type affecting double click on fbwinframe
simonb simonb
2 files changed,
4 insertions(+),
1 deletions(-)
M
ChangeLog
→
ChangeLog
@@ -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.cc
→
src/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;