Commit d4b83c3b authored by Martin Flöser's avatar Martin Flöser
Browse files

Don't react on mouse release events in Aurorae if mouse is outside button

HAPPY BIRTHDAY KDE. One bug fix as a present.

BUG: 283236
FIXED-IN: 4.7.3
parent 3d8ce220
......@@ -185,8 +185,7 @@ void AuroraeButton::mousePressEvent(QGraphicsSceneMouseEvent* event)
void AuroraeButton::mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
{
Q_UNUSED(event)
if (m_pressed) {
if (m_pressed && contains(event->pos())) {
emit clicked();
}
m_pressed = false;
......@@ -391,7 +390,7 @@ void AuroraeMaximizeButton::mousePressEvent(QGraphicsSceneMouseEvent* event)
void AuroraeMaximizeButton::mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
{
if (isPressed() && m_pressedButton == event->button()) {
if (isPressed() && m_pressedButton == event->button() && contains(event->pos())) {
emit clicked(m_pressedButton);
}
setPressed(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment