Fix setting the window state

Change-Id: I236095aa9103a2a35ecd79e747b8d1ee843a98f1
Reviewed-by: Jan Arne Petersen <jan.petersen@kdab.com>
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@liri.io>
This commit is contained in:
Giulio Camuffo 2017-02-28 17:38:03 +01:00
parent b5b693e888
commit fa4d3dec37

View File

@ -207,6 +207,10 @@ void QWaylandWindow::initWindow()
else
setGeometry_helper(window()->geometry());
setMask(window()->mask());
// setWindowStateInternal is a no-op if the argument is equal to mState,
// but since we're creating the shellsurface only now we reset mState to
// make sure the state gets sent out to the compositor
mState = Qt::WindowNoState;
setWindowStateInternal(window()->windowState());
handleContentOrientationChange(window()->contentOrientation());
mFlags = window()->flags();