fix new shadow update repaints

resetting is no longer needed with philip layer changes and actually
breaks damages on simultaneous resizes
also use addLayerRepaint for the shadow update

REVIEW: 104306
This commit is contained in:
Thomas Lübking 2012-03-16 18:53:19 +01:00
parent dd1b6cb05f
commit 1cedbe6c23

View file

@ -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);
}
}