summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/ios/qiosbackingstore.h
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-10-14 17:44:29 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-10-15 20:03:34 +0200
commitdedb29cf23959741593b2fa1481f210cd663cafb (patch)
tree9dab3585e12653d5ada408067571cd40391f76b9 /src/plugins/platforms/ios/qiosbackingstore.h
parentaad4158959890b72afdd062614c1142c100c65b5 (diff)
Fix high DPI position of foreign child windows on Windows
Suppose you have a child window that is a foreign window. In the bug report's example it's a QAxWidget that wraps the Windows Media Player. This means, we have a non-top-level QWindow with a platformWindow assigned. If windows:dpiawareness is set to 1 (system-DPI aware) and the window is displayed on a screen with origin != (0, 0), then we called QPlatformWindow::setGeometry with a position in native coordinates. This moved the child window outside of the visible area. Fix this by calling QHighDpi::toNativeWindowGeometry instead of QHighDpi::toNativePixels. The former function takes child windows properly into account. Pick-to: 6.2 Fixes: QTBUG-96114 Change-Id: Ibb0f844b10aece8ede99cb34289c0430ac283fa0 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/platforms/ios/qiosbackingstore.h')
0 files changed, 0 insertions, 0 deletions