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:
parent
b5b693e888
commit
fa4d3dec37
@ -207,6 +207,10 @@ void QWaylandWindow::initWindow()
|
|||||||
else
|
else
|
||||||
setGeometry_helper(window()->geometry());
|
setGeometry_helper(window()->geometry());
|
||||||
setMask(window()->mask());
|
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());
|
setWindowStateInternal(window()->windowState());
|
||||||
handleContentOrientationChange(window()->contentOrientation());
|
handleContentOrientationChange(window()->contentOrientation());
|
||||||
mFlags = window()->flags();
|
mFlags = window()->flags();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user