From 37b8023f7164c29fc4728acbebf9434c986fae45 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 11 Feb 2020 19:03:58 +0200 Subject: [PATCH] [effects/presentwindows] Use windowFrameGeometryChanged Summary: Use windowFrameGeometryChanged rather than windowGeometryShapeChanged because we are interested only in frame geometry changes. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D26907 --- effects/presentwindows/presentwindows.cpp | 4 ++-- effects/presentwindows/presentwindows.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index a6161d45b3..f6fbdb052f 100644 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -101,7 +101,7 @@ PresentWindowsEffect::PresentWindowsEffect() connect(effects, &EffectsHandler::windowAdded, this, &PresentWindowsEffect::slotWindowAdded); connect(effects, &EffectsHandler::windowClosed, this, &PresentWindowsEffect::slotWindowClosed); connect(effects, &EffectsHandler::windowDeleted, this, &PresentWindowsEffect::slotWindowDeleted); - connect(effects, &EffectsHandler::windowGeometryShapeChanged, this, &PresentWindowsEffect::slotWindowGeometryShapeChanged); + connect(effects, &EffectsHandler::windowFrameGeometryChanged, this, &PresentWindowsEffect::slotWindowFrameGeometryChanged); connect(effects, &EffectsHandler::propertyNotify, this, &PresentWindowsEffect::slotPropertyNotify); connect(effects, &EffectsHandler::numberScreensChanged, this, [this] { @@ -497,7 +497,7 @@ void PresentWindowsEffect::slotWindowDeleted(EffectWindow *w) m_motionManager.unmanage(w); } -void PresentWindowsEffect::slotWindowGeometryShapeChanged(EffectWindow* w, const QRect& old) +void PresentWindowsEffect::slotWindowFrameGeometryChanged(EffectWindow* w, const QRect& old) { Q_UNUSED(old) if (!m_activated) diff --git a/effects/presentwindows/presentwindows.h b/effects/presentwindows/presentwindows.h index ede10ba338..c81e48bf6b 100644 --- a/effects/presentwindows/presentwindows.h +++ b/effects/presentwindows/presentwindows.h @@ -208,7 +208,7 @@ public Q_SLOTS: void slotWindowAdded(KWin::EffectWindow *w); void slotWindowClosed(KWin::EffectWindow *w); void slotWindowDeleted(KWin::EffectWindow *w); - void slotWindowGeometryShapeChanged(KWin::EffectWindow *w, const QRect &old); + void slotWindowFrameGeometryChanged(KWin::EffectWindow *w, const QRect &old); // atoms void slotPropertyNotify(KWin::EffectWindow* w, long atom);