diff options
author | markt <markt> | 2007-02-21 17:17:40 (GMT) |
---|---|---|
committer | markt <markt> | 2007-02-21 17:17:40 (GMT) |
commit | 3d789a1e709f87170398b525643794cf6ff52fde (patch) | |
tree | 91bc91d06f840bccf7b9af1077d4646115d705d9 /src | |
parent | b2957c60607573fdf8f2a57a82cc2c03f34f0b47 (diff) | |
download | fluxbox-3d789a1e709f87170398b525643794cf6ff52fde.zip fluxbox-3d789a1e709f87170398b525643794cf6ff52fde.tar.bz2 |
ButtonRelease should only trigger actions if ButtonPress was on the same button
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/Button.cc | 2 |
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 | ||
111 | void Button::buttonReleaseEvent(XButtonEvent &event) { | 111 | void 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; |