Fix compile on systems without XComposite.

svn path=/trunk/KDE/kdebase/workspace/; revision=870784
icc-effect-5.14.5
Hasso Tepper 2008-10-13 09:56:13 +00:00
parent 4982bb9909
commit b19ba265f6
1 changed files with 4 additions and 0 deletions

View File

@ -831,14 +831,18 @@ bool Toplevel::updateUnredirectedState()
{
unredirect = true;
kDebug( 1212 ) << "Unredirecting:" << this;
#ifdef HAVE_XCOMPOSITE
XCompositeUnredirectWindow( display(), frameId(), CompositeRedirectManual );
#endif
return true;
}
else if( !should && unredirect )
{
unredirect = false;
kDebug( 1212 ) << "Redirecting:" << this;
#ifdef HAVE_XCOMPOSITE
XCompositeRedirectWindow( display(), frameId(), CompositeRedirectManual );
#endif
discardWindowPixmap();
return true;
}