Missing part of the don't-cache-window-pixmap commit.

svn path=/branches/work/kwin_composite/; revision=593732
This commit is contained in:
Luboš Luňák 2006-10-08 21:17:38 +00:00
parent dac02f69c6
commit d50c63e451

View file

@ -164,26 +164,13 @@ void Toplevel::finishCompositing()
return; return;
XDamageDestroy( display(), damage_handle ); XDamageDestroy( display(), damage_handle );
damage_handle = None; damage_handle = None;
if( window_pixmap != None )
XFreePixmap( display(), window_pixmap );
window_pixmap = None;
damage_region = QRegion(); damage_region = QRegion();
} }
void Toplevel::resetWindowPixmap() Pixmap Toplevel::createWindowPixmap() const
{ {
if( !compositing()) assert( compositing());
return; return XCompositeNameWindowPixmap( display(), handle());
if( window_pixmap != None )
XFreePixmap( display(), window_pixmap );
window_pixmap = None;
}
Pixmap Toplevel::windowPixmap() const
{
if( window_pixmap == None && compositing())
window_pixmap = XCompositeNameWindowPixmap( display(), handle());
return window_pixmap;
} }
void Toplevel::damageNotifyEvent( XDamageNotifyEvent* e ) void Toplevel::damageNotifyEvent( XDamageNotifyEvent* e )