aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Button.cc')
-rw-r--r--src/FbTk/Button.cc2
1 files changed, 2 insertions, 0 deletions
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;