summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--src/FbTk/Button.cc2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 45a7b5a..ca2c7f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.0rc3: 2Changes for 1.0rc3:
3*07/02/21:
4 * Buttons should only run a command if the mouse was clicked down on the
5 same button, e.g. bug #1437864 (Mark)
6 FbTk/Button.cc
3*07/02/17: 7*07/02/17:
4 * Slit was creating a strut even when it wasn't visible (Mark) 8 * Slit was creating a strut even when it wasn't visible (Mark)
5 Slit.cc/hh 9 Slit.cc/hh
diff --git a/src/FbTk/Button.cc b/src/FbTk/Button.cc
index 767ed47..f13adf3 100644
--- a/src/FbTk/Button.cc
+++ b/src/FbTk/Button.cc
@@ -109,6 +109,8 @@ void Button::buttonPressEvent(XButtonEvent &event) {
109} 109}
110 110
111void Button::buttonReleaseEvent(XButtonEvent &event) { 111void Button::buttonReleaseEvent(XButtonEvent &event) {
112 if (!m_pressed) // we don't want to pick up clicks from other widgets
113 return;
112 m_pressed = false; 114 m_pressed = false;
113 bool update = false; 115 bool update = false;
114 bool been_deleted = false; 116 bool been_deleted = false;