Overlay window also needs input shape.

svn path=/trunk/KDE/kdebase/workspace/; revision=683158
This commit is contained in:
Luboš Luňák 2007-07-04 09:52:03 +00:00
parent 9052116e4f
commit 8d929cb3fc

View file

@ -329,6 +329,8 @@ bool Workspace::createOverlay()
assert( overlay == None ); assert( overlay == None );
if( !Extensions::compositeOverlayAvailable()) if( !Extensions::compositeOverlayAvailable())
return false; return false;
if( !Extensions::shapeInputAvailable()) // needed in setupOverlay()
return false;
#ifdef HAVE_XCOMPOSITE_OVERLAY #ifdef HAVE_XCOMPOSITE_OVERLAY
overlay = XCompositeGetOverlayWindow( display(), rootWindow()); overlay = XCompositeGetOverlayWindow( display(), rootWindow());
if( overlay == None ) if( overlay == None )
@ -342,6 +344,7 @@ bool Workspace::createOverlay()
void Workspace::setupOverlay( Window w ) void Workspace::setupOverlay( Window w )
{ {
assert( overlay != None ); assert( overlay != None );
assert( Extensions::shapeInputAvailable());
XShapeCombineRectangles( display(), overlay, ShapeInput, 0, 0, NULL, 0, ShapeSet, Unsorted ); XShapeCombineRectangles( display(), overlay, ShapeInput, 0, 0, NULL, 0, ShapeSet, Unsorted );
if( w != None ) if( w != None )
{ {