A mouse release event doesn't have the triggered button in Qt::MouseButtons
This commit is contained in:
parent
a104d9dc62
commit
7e8cce212d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue