Discard window pixmap only if the window actually resizes.

svn path=/trunk/KDE/kdebase/workspace/; revision=787945
This commit is contained in:
Luboš Luňák 2008-03-20 09:58:46 +00:00
parent 38291eb82c
commit fb7f6b67e1

View file

@ -1707,7 +1707,8 @@ void Unmanaged::configureNotifyEvent( XConfigureEvent* e )
addWorkspaceRepaint( geometry()); // damage old area
QRect old = geom;
geom = newgeom;
discardWindowPixmap();
if( old.size() != geom.size())
discardWindowPixmap();
if( scene != NULL )
scene->windowGeometryShapeChanged( this );
if( effects != NULL )