Missing part of the don't-cache-window-pixmap commit.
svn path=/branches/work/kwin_composite/; revision=593732
This commit is contained in:
parent
dac02f69c6
commit
d50c63e451
1 changed files with 3 additions and 16 deletions
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue