From a31940a6fe18d995b37780d52612480982458673 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Mon, 11 Dec 2017 15:21:25 +0200 Subject: [PATCH] fix for calculating panel reqion in !compositing the mask region wasnt calculated correctly in some cases after location changes. I think it might be a plasma upstream bug/change but either way this patch fixes it. --- app/dockview.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/dockview.cpp b/app/dockview.cpp index 3c8a725a8..0c6f6a1b1 100644 --- a/app/dockview.cpp +++ b/app/dockview.cpp @@ -1117,7 +1117,9 @@ void DockView::setMaskArea(QRect area) //! this is used when compositing is disabled and provides //! the correct way for the mask to be painted in order for //! rounded corners to be shown correctly - if (!m_background) { + //! the enabledBorders check was added because there was cases + //! that the mask region wasnt calculated correctly after location changes + if (!m_background || m_background->enabledBorders() != enabledBorders()) { m_background = new Plasma::FrameSvg(this); }