diff options
author | simonb <simonb> | 2006-04-14 14:32:16 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-04-14 14:32:16 (GMT) |
commit | 3a7c01abed9adbac60bdd824b43a9d79ec064dea (patch) | |
tree | cf2d8b0cfdf8dfbd36651d433d7a80e7b0b77672 /src/FbWinFrame.cc | |
parent | 0780952b102b48e4448bbd514dad6297899be1e4 (diff) | |
download | fluxbox-3a7c01abed9adbac60bdd824b43a9d79ec064dea.zip fluxbox-3a7c01abed9adbac60bdd824b43a9d79ec064dea.tar.bz2 |
fix time type affecting double click on fbwinframe
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r-- | src/FbWinFrame.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
856 | if (event.button < 1 || event.button > 5) | 856 | if (event.button < 1 || event.button > 5) |
857 | return; | 857 | return; |
858 | 858 | ||
859 | static int last_release_time = 0; | 859 | static Time last_release_time = 0; |
860 | bool double_click = (event.time - last_release_time <= m_double_click_time); | 860 | bool double_click = (event.time - last_release_time <= m_double_click_time); |
861 | last_release_time = event.time; | 861 | last_release_time = event.time; |
862 | int real_button = event.button - 1; | 862 | int real_button = event.button - 1; |