diff options
author | Andre de la Rocha <andre.rocha@qt.io> | 2019-04-03 14:18:20 +0200 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2019-04-08 15:04:56 +0000 |
commit | 8957cb2682d874403c3ee08c98bfd544a60c6da4 (patch) | |
tree | e7be0ace0b025dc2473f12baa035cf27c82469ab /LICENSE.LGPLv3 | |
parent | a0b5d6e60f96359d88352e0b1c000678cdc80988 (diff) |
Windows QPA: Fix mouse button reported in non-client events
The current mouse buttons state was being retrieved from WPARAM
for all mouse messages. However, for non-client messages this
parameter contains unrelated information, which resulted in
non-client events reporting incorrect button state. Changing it to
retrieve state using GetAsyncKeyState() for non-client messages,
like in the legacy mouse handler implementation.
Fixes: QTBUG-74649
Change-Id: Ia246164208707072e584dd521697e9d31d3e65ad
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'LICENSE.LGPLv3')
0 files changed, 0 insertions, 0 deletions