From 3a7c01abed9adbac60bdd824b43a9d79ec064dea Mon Sep 17 00:00:00 2001 From: simonb Date: Fri, 14 Apr 2006 14:32:16 +0000 Subject: fix time type affecting double click on fbwinframe --- ChangeLog | 3 +++ src/FbWinFrame.cc | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 83af74f..d715529 100644 --- a/ChangeLog +++ b/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 diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc index 2bb3298..4416ff6 100644 --- a/src/FbWinFrame.cc +++ b/src/FbWinFrame.cc @@ -856,7 +856,7 @@ void FbWinFrame::buttonReleaseEvent(XButtonEvent &event) { 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; -- cgit v0.11.2