Fix button state after synthesized mouse release

This commit is contained in:
Ilya Fedin 2023-06-01 06:42:52 +04:00 committed by John Preston
parent cf906f14bd
commit 6c216e437d

View file

@ -166,7 +166,9 @@ void SendSynteticMouseEvent(QWidget *widget, QEvent::Type type, Qt::MouseButton
, localPoint
, globalPoint
, button
, QGuiApplication::mouseButtons() | button
, type == QEvent::MouseButtonRelease
? QGuiApplication::mouseButtons() ^ button
: QGuiApplication::mouseButtons() | button
, QGuiApplication::keyboardModifiers()
, Qt::MouseEventSynthesizedByApplication
);