diff options
author | Giulio Camuffo <giulio.camuffo@kdab.com> | 2017-02-28 17:38:03 +0100 |
---|---|---|
committer | Giulio Camuffo <giulio.camuffo@kdab.com> | 2017-05-26 13:32:59 +0000 |
commit | 61afb5bf23df8a33930941fd9b5bbaab9fdaebfc (patch) | |
tree | fa967eb21e356ec847d670b3fb89e49bcbccd554 | |
parent | e80979756369a19236a9a90ca0bfb0210670b327 (diff) | |
download | qtwayland-61afb5bf23df8a33930941fd9b5bbaab9fdaebfc.tar.gz |
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.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp index 18470913..5585fd52 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(); |