ButtonRelease should only trigger actions if ButtonPress was on the same button
This commit is contained in:
parent
b2957c6060
commit
3d789a1e70
2 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -109,6 +109,8 @@ void Button::buttonPressEvent(XButtonEvent &event) {
|
|||
}
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue