From d22cc67df95c75a070caea6069b22f5486b578c6 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 1 Jun 2023 21:37:09 +0300 Subject: [PATCH] libkwineffects: Drop EffectsHandler::windowGeometryShapeChanged It's very X11-specific and it's unused. --- src/effects.cpp | 7 ------- src/libkwineffects/kwineffects.h | 11 ----------- 2 files changed, 18 deletions(-) diff --git a/src/effects.cpp b/src/effects.cpp index b61b8166f7..0d78ac0297 100644 --- a/src/effects.cpp +++ b/src/effects.cpp @@ -307,13 +307,6 @@ void EffectsHandlerImpl::setupWindowConnections(Window *window) } }); connect(window, &Window::modalChanged, this, &EffectsHandlerImpl::slotClientModalityChanged); - connect(window, &Window::geometryShapeChanged, this, [this, window](const QRectF &old) { - // during late cleanup effectWindow() may be already NULL - // in some functions that may still call this - if (window->effectWindow()) { - Q_EMIT windowGeometryShapeChanged(window->effectWindow(), old);; - } - }); connect(window, &Window::frameGeometryChanged, this, [this, window](const QRectF &oldGeometry) { // effectWindow() might be nullptr during tear down of the client. if (window->effectWindow()) { diff --git a/src/libkwineffects/kwineffects.h b/src/libkwineffects/kwineffects.h index 4de976d90e..9d4056f22d 100644 --- a/src/libkwineffects/kwineffects.h +++ b/src/libkwineffects/kwineffects.h @@ -1577,17 +1577,6 @@ Q_SIGNALS: */ void windowMaximizedStateAboutToChange(KWin::EffectWindow *w, bool horizontal, bool vertical); - /** - * Signal emitted when the geometry or shape of a window changed. - * This is caused if the window changes geometry without user interaction. - * E.g. the decoration is changed. This is in opposite to windowUserMovedResized - * which is caused by direct user interaction. - * @param w The window whose geometry changed - * @param old The previous geometry - * @see windowUserMovedResized - * @since 4.7 - */ - void windowGeometryShapeChanged(KWin::EffectWindow *w, const QRectF &old); /** * This signal is emitted when the frame geometry of a window changed. * @param window The window whose geometry changed