diff options
author | Viktor Arvidsson <viktor.arvidss@gmail.com> | 2022-01-31 19:14:04 +0100 |
---|---|---|
committer | Viktor Arvidsson <viktor.arvidss@gmail.com> | 2022-02-22 18:03:11 +0000 |
commit | cfe421cee2d4f56180280ecd9da8c3da6a980b84 (patch) | |
tree | 4853169b28b53cacba419153d52483fff509633e /libexec | |
parent | d48609a9c41643d6fdb0a964fa3209fe1a175a11 (diff) |
Windows QPA: Calculate window frame for frameless windows the same for all code paths
When we add the WS_THICKFRAME/WS_CAPTION window flags to a
frameless window the return value of AdjustWindowRectEx is no
longer 0. This works fine when creating the window since the version
of QWindowsGeometryHint::frame used during creation checks the
FramelessWindowHint, however later when the window changes
screen, the screen change code checks the fullFrameMargins which
uses a version of QWindowsGeometryHint::frame that does not
early out, causing a missmatch in the geometries of the backing
store and platform window.
This fixes aero snapping shortcuts for frameless windows on multi
monitor setups.
Fixes: QTBUG-84466
Pick-to: 6.2 6.3
Change-Id: I2357ea32669e4676645549996a3ac6073f3df15c
Reviewed-by: André de la Rocha <andre.rocha@qt.io>
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions