Android: Always apply initial geometry from QWindow to QtWindow
We shouldn't rely on the QWindow geometry being propagated through other means, so we should always propagate the geometry when initializing the QAndroidPlatformWindow. Change-Id: I489b059ffae7a209005edaaff3674c1f39273bee Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Petri Virkkunen <petri.virkkunen@qt.io> (cherry picked from commit 6e52d010535b87300bacd54c0c21fba7cc926eaa) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
555242e637
commit
8a8df25f32
@ -72,8 +72,7 @@ void QAndroidPlatformWindow::initialize()
|
||||
const QRect finalNativeGeometry = QPlatformWindow::initialGeometry(
|
||||
window, requestedNativeGeometry, availableDeviceIndependentGeometry.width(),
|
||||
availableDeviceIndependentGeometry.height());
|
||||
if (requestedNativeGeometry != finalNativeGeometry)
|
||||
setGeometry(finalNativeGeometry);
|
||||
setGeometry(finalNativeGeometry);
|
||||
}
|
||||
|
||||
if (window->isTopLevel())
|
||||
|
Loading…
x
Reference in New Issue
Block a user