[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
This commit is contained in:
Vlad Zahorodnii 2020-02-11 19:03:58 +02:00
parent f7891ee252
commit 37b8023f71
2 changed files with 3 additions and 3 deletions

View file

@ -101,7 +101,7 @@ PresentWindowsEffect::PresentWindowsEffect()
connect(effects, &EffectsHandler::windowAdded, this, &PresentWindowsEffect::slotWindowAdded); connect(effects, &EffectsHandler::windowAdded, this, &PresentWindowsEffect::slotWindowAdded);
connect(effects, &EffectsHandler::windowClosed, this, &PresentWindowsEffect::slotWindowClosed); connect(effects, &EffectsHandler::windowClosed, this, &PresentWindowsEffect::slotWindowClosed);
connect(effects, &EffectsHandler::windowDeleted, this, &PresentWindowsEffect::slotWindowDeleted); 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::propertyNotify, this, &PresentWindowsEffect::slotPropertyNotify);
connect(effects, &EffectsHandler::numberScreensChanged, this, connect(effects, &EffectsHandler::numberScreensChanged, this,
[this] { [this] {
@ -497,7 +497,7 @@ void PresentWindowsEffect::slotWindowDeleted(EffectWindow *w)
m_motionManager.unmanage(w); m_motionManager.unmanage(w);
} }
void PresentWindowsEffect::slotWindowGeometryShapeChanged(EffectWindow* w, const QRect& old) void PresentWindowsEffect::slotWindowFrameGeometryChanged(EffectWindow* w, const QRect& old)
{ {
Q_UNUSED(old) Q_UNUSED(old)
if (!m_activated) if (!m_activated)

View file

@ -208,7 +208,7 @@ public Q_SLOTS:
void slotWindowAdded(KWin::EffectWindow *w); void slotWindowAdded(KWin::EffectWindow *w);
void slotWindowClosed(KWin::EffectWindow *w); void slotWindowClosed(KWin::EffectWindow *w);
void slotWindowDeleted(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 // atoms
void slotPropertyNotify(KWin::EffectWindow* w, long atom); void slotPropertyNotify(KWin::EffectWindow* w, long atom);