[plasma/kwin] tests/pip: tests/pip: Set contents geometry correctly
Vlad Zahorodnii <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 4409112c9863510cc9eb072cc13bed2d62952acd by Vlad Zahorodnii.
Committed on 03/08/2026 at 13:24.
Pushed by vladz into branch 'master'.
tests/pip: Set contents geometry correctly
setWindowGeometry() specifies the preferred new size, not the current
content size.
M +1 -1 tests/pip/pipshellsurface.cpp
M +1 -1 tests/pip/pipshellsurface.h
https://invent.kde.org/plasma/kwin/-/commit/4409112c9863510cc9eb072cc13bed2d62952acd
diff --git a/tests/pip/pipshellsurface.cpp b/tests/pip/pipshellsurface.cpp
index 082a51a3c24..e860c3d7f6b 100644
--- a/tests/pip/pipshellsurface.cpp
+++ b/tests/pip/pipshellsurface.cpp
@@ -93,7 +93,7 @@ void PipShellSurface::applyConfigure()
window()->resizeFromApplyConfigure(size);
}
-void PipShellSurface::setWindowGeometry(const QRect &rect)
+void PipShellSurface::setContentGeometry(const QRect &rect)
{
if (window()->isExposed()) {
xdg_surface::set_window_geometry(rect.x(), rect.y(), rect.width(), rect.height());
diff --git a/tests/pip/pipshellsurface.h b/tests/pip/pipshellsurface.h
index b02e83b3fc9..e9c1df28690 100644
--- a/tests/pip/pipshellsurface.h
+++ b/tests/pip/pipshellsurface.h
@@ -55,7 +55,7 @@ public:
bool isExposed() const override;
void applyConfigure() override;
- void setWindowGeometry(const QRect &rect) override;
+ void setContentGeometry(const QRect &rect) override;
bool move(QtWaylandClient::QWaylandInputDevice *inputDevice) override;
bool resize(QtWaylandClient::QWaylandInputDevice *inputDevice, Qt::Edges edges) override;