diff --git a/effects/flipswitch/flipswitch.cpp b/effects/flipswitch/flipswitch.cpp index 5037f93a82..b1b11ae1d5 100644 --- a/effects/flipswitch/flipswitch.cpp +++ b/effects/flipswitch/flipswitch.cpp @@ -828,10 +828,10 @@ void FlipSwitchEffect::adjustWindowMultiScreen(const KWin::EffectWindow* w, Wind } } else { if (clientRect.width() != fullRect.width() && clientRect.x() < rect.x()) { - data.xTranslate -= clientRect.width(); + data.xTranslate -= (m_screenArea.x() - clientRect.x()); } if (clientRect.height() != fullRect.height() && clientRect.y() < m_screenArea.y()) { - data.yTranslate -= clientRect.height(); + data.yTranslate -= (m_screenArea.y() - clientRect.y()); } } }