Fix compile on systems without XComposite.
svn path=/trunk/KDE/kdebase/workspace/; revision=870784
This commit is contained in:
parent
4982bb9909
commit
b19ba265f6
1 changed files with 4 additions and 0 deletions
|
@ -831,14 +831,18 @@ bool Toplevel::updateUnredirectedState()
|
||||||
{
|
{
|
||||||
unredirect = true;
|
unredirect = true;
|
||||||
kDebug( 1212 ) << "Unredirecting:" << this;
|
kDebug( 1212 ) << "Unredirecting:" << this;
|
||||||
|
#ifdef HAVE_XCOMPOSITE
|
||||||
XCompositeUnredirectWindow( display(), frameId(), CompositeRedirectManual );
|
XCompositeUnredirectWindow( display(), frameId(), CompositeRedirectManual );
|
||||||
|
#endif
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if( !should && unredirect )
|
else if( !should && unredirect )
|
||||||
{
|
{
|
||||||
unredirect = false;
|
unredirect = false;
|
||||||
kDebug( 1212 ) << "Redirecting:" << this;
|
kDebug( 1212 ) << "Redirecting:" << this;
|
||||||
|
#ifdef HAVE_XCOMPOSITE
|
||||||
XCompositeRedirectWindow( display(), frameId(), CompositeRedirectManual );
|
XCompositeRedirectWindow( display(), frameId(), CompositeRedirectManual );
|
||||||
|
#endif
|
||||||
discardWindowPixmap();
|
discardWindowPixmap();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue