From 4501c940f13dd9c17324cbaf1bb6147913500916 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 10 May 2020 21:25:29 +0300 Subject: [PATCH] fix hide screen gap animation for behaveAsPanels --- app/view/positioner.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/view/positioner.cpp b/app/view/positioner.cpp index be00af735..b5b26f109 100644 --- a/app/view/positioner.cpp +++ b/app/view/positioner.cpp @@ -585,18 +585,7 @@ void Positioner::updatePosition(QRect availableScreenRect) int cleanThickness = m_view->normalThickness() - m_view->effects()->innerShadow(); - int screenEdgeMargin = (m_view->behaveAsPlasmaPanel() && m_view->screenEdgeMarginEnabled()) ? m_view->screenEdgeMargin() : 0; - - if (m_view->behaveAsPlasmaPanel()) { - //! Update screenEdgeMargin to take into account slide_offset that is used - //! in real window animations for BEHAVEASPLASMAPANELS views - - if (m_view->location() == Plasma::Types::TopEdge || m_view->location() == Plasma::Types::LeftEdge) { - screenEdgeMargin = screenEdgeMargin + qAbs(m_slideOffset); - } else { - screenEdgeMargin = screenEdgeMargin - qAbs(m_slideOffset); - } - } + int screenEdgeMargin = m_view->behaveAsPlasmaPanel() ? m_view->screenEdgeMargin() - qAbs(m_slideOffset) : 0; switch (m_view->location()) { case Plasma::Types::TopEdge: