summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiulio Camuffo <giulio.camuffo@kdab.com>2017-02-28 17:38:03 +0100
committerGiulio Camuffo <giulio.camuffo@kdab.com>2017-05-26 13:32:59 +0000
commit61afb5bf23df8a33930941fd9b5bbaab9fdaebfc (patch)
treefa967eb21e356ec847d670b3fb89e49bcbccd554
parente80979756369a19236a9a90ca0bfb0210670b327 (diff)
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>
-rw-r--r--src/client/qwaylandwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index 18470913b..5585fd52a 100644
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
@@ -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();