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 | |
parent | b2957c60607573fdf8f2a57a82cc2c03f34f0b47 (diff) | |
download | fluxbox_lack-3d789a1e709f87170398b525643794cf6ff52fde.zip fluxbox_lack-3d789a1e709f87170398b525643794cf6ff52fde.tar.bz2 |
ButtonRelease should only trigger actions if ButtonPress was on the same button
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/FbTk/Button.cc | 2 |
2 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,9 @@ | |||
1 | (Format: Year/Month/Day) | 1 | (Format: Year/Month/Day) |
2 | Changes for 1.0rc3: | 2 | Changes 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 | ||
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; |