From 264a19247bc081dfb4701509b1920a539e0b65bc Mon Sep 17 00:00:00 2001 From: David Redondo Date: Mon, 20 Feb 2023 11:46:47 +0100 Subject: [PATCH] Mark Window as damaged when decoration or shadow changes Enforms thumbnails, screencasts and effects of these changes and that the window needs repainting. BUG:464417 FIXED-IN:5.27.1 --- src/scene/windowitem.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/scene/windowitem.cpp b/src/scene/windowitem.cpp index f29186c705..8860dff73b 100644 --- a/src/scene/windowitem.cpp +++ b/src/scene/windowitem.cpp @@ -16,6 +16,8 @@ #include "window.h" #include "workspace.h" +#include + namespace KWin { @@ -219,6 +221,7 @@ void WindowItem::updateShadowItem() } else if (m_surfaceItem) { m_shadowItem->stackBefore(m_surfaceItem.get()); } + markDamaged(); } else { m_shadowItem.reset(); } @@ -236,6 +239,8 @@ void WindowItem::updateDecorationItem() } else if (m_surfaceItem) { m_decorationItem->stackBefore(m_surfaceItem.get()); } + connect(m_window->decoration(), &KDecoration2::Decoration::damaged, this, &WindowItem::markDamaged); + markDamaged(); } else { m_decorationItem.reset(); }