diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-11-05 10:18:50 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-11-09 08:06:18 +0000 |
commit | 9137691e745039f8ad9cdee2594a958e244ba341 (patch) | |
tree | 478ce1fc576176799e431ddc0642e04f52aeab79 /src/gui/kernel/qt_gui_pch.h | |
parent | c9d18d4a9c9d1243a267316e2a702f9ba69de2fd (diff) |
Windows QPA: Fix crash showing QSystemTrayIcon's context menu with PROCESS_DPI_UNAWARE
The coordinates of the WM_CONTEXT message may be out of any screen in
PROCESS_DPI_UNAWARE mode since hi-res coordinates are delivered in this case
(Windows issue). Default to primary screen with check to prevent a crash.
Fixes: QTBUG-67966
Change-Id: I1950360520e93cbf3509611b3057635769f6543a
Reviewed-by: Andre de la Rocha <andre.rocha@qt.io>
Diffstat (limited to 'src/gui/kernel/qt_gui_pch.h')
0 files changed, 0 insertions, 0 deletions