A mouse release event doesn't have the triggered button in Qt::MouseButtons

This commit is contained in:
Martin Gräßlin 2014-10-23 16:49:21 +02:00
parent a104d9dc62
commit 7e8cce212d

View file

@ -1269,7 +1269,7 @@ bool Client::buttonReleaseEvent(xcb_window_t w, int button, int state, int x, in
QPointF(x, y), QPointF(x, y),
QPointF(x_root, y_root), QPointF(x_root, y_root),
x11ToQtMouseButton(button), x11ToQtMouseButton(button),
x11ToQtMouseButtons(state), x11ToQtMouseButtons(state) & ~x11ToQtMouseButton(button),
x11ToQtKeyboardModifiers(state)); x11ToQtKeyboardModifiers(state));
QCoreApplication::sendEvent(m_decoration, &event); QCoreApplication::sendEvent(m_decoration, &event);
} }