[plasma/kwin] src/wayland: wayland: Drop XdgSurfaceInterface::windowGeometryChanged() signal
Vlad Zahorodnii <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 36cdac60ffd91e2f44e8dccefe409db5d466152e by Vlad Zahorodnii.
Committed on 10/08/2026 at 12:30.
Pushed by vladz into branch 'master'.
wayland: Drop XdgSurfaceInterface::windowGeometryChanged() signal
It's unused.
M +2 -7 src/wayland/xdgshell.cpp
M +0 -5 src/wayland/xdgshell.h
https://invent.kde.org/plasma/kwin/-/commit/36cdac60ffd91e2f44e8dccefe409db5d466152e
diff --git a/src/wayland/xdgshell.cpp b/src/wayland/xdgshell.cpp
index 3aea39bb74e..40343d5b6f4 100644
--- a/src/wayland/xdgshell.cpp
+++ b/src/wayland/xdgshell.cpp
@@ -161,14 +161,9 @@ void XdgSurfaceInterfacePrivate::apply(XdgSurfaceCommit *commit)
explicitWindowGeometry = commit->windowGeometry;
}
- RectF geometry = surface->boundingRect();
+ effectiveWindowGeometry = surface->boundingRect();
if (explicitWindowGeometry) {
- geometry &= *explicitWindowGeometry;
- }
-
- if (effectiveWindowGeometry != geometry) {
- effectiveWindowGeometry = geometry;
- Q_EMIT q->windowGeometryChanged();
+ effectiveWindowGeometry &= *explicitWindowGeometry;
}
}
diff --git a/src/wayland/xdgshell.h b/src/wayland/xdgshell.h
index 7d1fd08b6d4..0dc56a8b02c 100644
--- a/src/wayland/xdgshell.h
+++ b/src/wayland/xdgshell.h
@@ -189,11 +189,6 @@ Q_SIGNALS:
*/
void configureAcknowledged(quint32 serial);
- /**
- * This signal is emitted when the window geometry has been changed.
- */
- void windowGeometryChanged();
-
/**
* This signal is emitted when the surface has been unmapped and its state has been reset.
*/