wasm: update m_normalGeometry on setGeometry()
If we don't do this then applyWindowState() will apply the original window geometry from QWasmWindow::initialize(). Change-Id: I4a0fb7aa7984ba21c64364e0bf00d70513232d5d Reviewed-by: Lorn Potter <lorn.potter@gmail.com> Reviewed-by: David Skoland <david.skoland@qt.io>
This commit is contained in:
parent
576730f599
commit
af59c56dc1
@ -88,6 +88,8 @@ void QWasmWindow::setGeometry(const QRect &rect)
|
||||
if (r.y() < yMin)
|
||||
r.moveTop(yMin);
|
||||
}
|
||||
if (!m_windowState.testFlag(Qt::WindowFullScreen) && !m_windowState.testFlag(Qt::WindowMaximized))
|
||||
m_normalGeometry = r;
|
||||
QPlatformWindow::setGeometry(r);
|
||||
QWindowSystemInterface::handleGeometryChange(window(), r);
|
||||
invalidate();
|
||||
|
Loading…
Reference in New Issue
Block a user