ButtonRelease should only trigger actions if ButtonPress was on the same button
markt markt
2 files changed,
6 insertions(+),
0 deletions(-)
M
ChangeLog
→
ChangeLog
@@ -1,5 +1,9 @@
(Format: Year/Month/Day) Changes for 1.0rc3: +*07/02/21: + * Buttons should only run a command if the mouse was clicked down on the + same button, e.g. bug #1437864 (Mark) + FbTk/Button.cc *07/02/17: * Slit was creating a strut even when it wasn't visible (Mark) Slit.cc/hh
M
src/FbTk/Button.cc
→
src/FbTk/Button.cc
@@ -109,6 +109,8 @@ }
} void Button::buttonReleaseEvent(XButtonEvent &event) { + if (!m_pressed) // we don't want to pick up clicks from other widgets + return; m_pressed = false; bool update = false; bool been_deleted = false;