[plasma/kwin] src/scene: scene/workspacescene: add a full repaint when layer compositing changes

Xaver Hugl <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 0fe2737aba92b083f3e65deba32f9af8d964e08a by Xaver Hugl.
Committed on 21/07/2026 at 20:20.
Pushed by zamundaaa into branch 'master'.

scene/workspacescene: add a full repaint when layer compositing changes

Otherwise it won't be rendered properly

M  +4    -0    src/scene/workspacescene.cpp

https://invent.kde.org/plasma/kwin/-/commit/0fe2737aba92b083f3e65deba32f9af8d964e08a

diff --git a/src/scene/workspacescene.cpp b/src/scene/workspacescene.cpp
index ceb348a458a..c83ede3472b 100644
--- a/src/scene/workspacescene.cpp
+++ b/src/scene/workspacescene.cpp
@@ -843,10 +843,14 @@ bool WorkspaceScene::animationsSupported() const
 
 void WorkspaceScene::setLayerDebugging(bool enable)
 {
+    if (m_layerDebugging == enable) {
+        return;
+    }
     m_layerDebugging = enable;
     if (m_renderer) {
         m_renderer->setLayerDebugging(enable);
     }
+    addRepaintFull();
 }
 
 } // namespace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.