aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Button.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-02-21 17:17:40 (GMT)
committermarkt <markt>2007-02-21 17:17:40 (GMT)
commit3d789a1e709f87170398b525643794cf6ff52fde (patch)
tree91bc91d06f840bccf7b9af1077d4646115d705d9 /src/FbTk/Button.cc
parentb2957c60607573fdf8f2a57a82cc2c03f34f0b47 (diff)
downloadfluxbox-3d789a1e709f87170398b525643794cf6ff52fde.zip
fluxbox-3d789a1e709f87170398b525643794cf6ff52fde.tar.bz2
ButtonRelease should only trigger actions if ButtonPress was on the same button
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;