all repos — fluxbox @ 3d789a1e709f87170398b525643794cf6ff52fde

custom fork of the fluxbox windowmanager

ButtonRelease should only trigger actions if ButtonPress was on the same button
markt markt
commit

3d789a1e709f87170398b525643794cf6ff52fde

parent

b2957c60607573fdf8f2a57a82cc2c03f34f0b47

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M ChangeLogChangeLog

@@ -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.ccsrc/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;