diff --git a/scene_xrender.cpp b/scene_xrender.cpp index 13e9b72f85..5c7663b795 100644 --- a/scene_xrender.cpp +++ b/scene_xrender.cpp @@ -732,7 +732,7 @@ void SceneXrender::Window::performPaint(int mask, QRegion region, WindowPaintDat } //shadow - if (m_shadow) { + if (m_shadow && !(mask & PAINT_DECORATION_ONLY)) { QRect stlr, str, strr, srr, sbrr, sbr, sblr, slr; SceneXRenderShadow* m_xrenderShadow = static_cast(m_shadow); m_xrenderShadow->layoutShadowRects(str, strr, srr, sbrr, sbr, sblr, slr, stlr);