diff --git a/toplevel.cpp b/toplevel.cpp index e6323f0244..60662c96ac 100644 --- a/toplevel.cpp +++ b/toplevel.cpp @@ -381,9 +381,8 @@ void Toplevel::getShadow() if (hasShadow()) dirtyRect |= shadow()->shadowRegion().boundingRect(); if (dirtyRect.isValid()) { - resetRepaints(); dirtyRect.translate(pos()); - workspace()->addRepaint(dirtyRect); + addLayerRepaint(dirtyRect); } }