diff options
author | Andre de la Rocha <andre.rocha@qt.io> | 2019-05-15 19:33:36 +0200 |
---|---|---|
committer | Andre de la Rocha <andre.rocha@qt.io> | 2019-05-18 03:15:06 +0000 |
commit | 8be17f1fd54c2923497af57b57fbe76a092a4f50 (patch) | |
tree | 0d051cb1e350d2725c2739c1b883c737f0ea59ff /src/gui/gui.pro | |
parent | a96a33d993618d5326e16ffb1b5028a94ceb4af2 (diff) |
Windows QPA: Fix QWheelEvent::buttons() after click on title bar
When the left or right mouse buttons are pressed over the window title
bar a WM_NCLBUTTONDOWN/WM_NCRBUTTONDOWN message is received. But when the
button is released, no corresponding UP message is received, but only
a WM_NCMOUSEMOVE or WM_MOUSEMOVE. This makes the internal mouse button
state stored in QGuiApplication get out of sync with the actual state,
resulting in an incorrect button state being used in QWheelEvent.
This patch detects the button release condition and generates the missing
release event.
Change-Id: I6dd9f8580bd6ba772522574f9a08298e49c43e61
Fixes: QTBUG-75678
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/gui/gui.pro')
0 files changed, 0 insertions, 0 deletions