diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/qwaylandshellsurface_p.h | 2 | ||||
-rw-r--r-- | src/client/qwaylandwindow.cpp | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/client/qwaylandshellsurface_p.h b/src/client/qwaylandshellsurface_p.h index 804056e54..f5f202d08 100644 --- a/src/client/qwaylandshellsurface_p.h +++ b/src/client/qwaylandshellsurface_p.h @@ -99,6 +99,8 @@ public: virtual void propagateSizeHints() {} + virtual void setWindowGeometry(const QRect &rect) { Q_UNUSED(rect); } + private: QWaylandWindow *m_window = nullptr; friend class QWaylandWindow; diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp index e8ff081c8..2301875c9 100644 --- a/src/client/qwaylandwindow.cpp +++ b/src/client/qwaylandwindow.cpp @@ -339,6 +339,9 @@ void QWaylandWindow::setGeometry(const QRect &rect) QRect exposeGeometry(QPoint(), geometry().size()); if (exposeGeometry != mLastExposeGeometry) sendExposeEvent(exposeGeometry); + + if (mShellSurface) + mShellSurface->setWindowGeometry(QRect(QPoint(0, 0), window()->frameGeometry().size())); } void QWaylandWindow::resizeFromApplyConfigure(const QSize &sizeWithMargins, const QPoint &offset) |