summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonb <simonb>2006-04-14 14:32:16 (GMT)
committersimonb <simonb>2006-04-14 14:32:16 (GMT)
commit3a7c01abed9adbac60bdd824b43a9d79ec064dea (patch)
treecf2d8b0cfdf8dfbd36651d433d7a80e7b0b77672
parent0780952b102b48e4448bbd514dad6297899be1e4 (diff)
downloadfluxbox_lack-3a7c01abed9adbac60bdd824b43a9d79ec064dea.zip
fluxbox_lack-3a7c01abed9adbac60bdd824b43a9d79ec064dea.tar.bz2
fix time type affecting double click on fbwinframe
-rw-r--r--ChangeLog3
-rw-r--r--src/FbWinFrame.cc2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 83af74f..d715529 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
1(Format: Year/Month/Day) 1(Format: Year/Month/Day)
2Changes for 0.9.16: 2Changes for 0.9.16:
3*06/04/14: 3*06/04/14:
4 * Fix type of last_release_time, affected double click functions
5 on 64-bit platforms (sf.net #1467871, thanks davidhi) (Simon)
6 FbWinFrame.cc
4 * Fix updating of button state (esp stick/shade) (Simon) 7 * Fix updating of button state (esp stick/shade) (Simon)
5 (sf.net #1281724, #1213257) 8 (sf.net #1281724, #1213257)
6 FbTk/Button.hh/cc WinButton.cc Window.cc 9 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) {
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;