From 8d929cb3fcf8ecb4fedc2649192b71e2e09f9962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 4 Jul 2007 09:52:03 +0000 Subject: [PATCH] Overlay window also needs input shape. svn path=/trunk/KDE/kdebase/workspace/; revision=683158 --- composite.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composite.cpp b/composite.cpp index 1e1051935f..46671f836b 100644 --- a/composite.cpp +++ b/composite.cpp @@ -329,6 +329,8 @@ bool Workspace::createOverlay() assert( overlay == None ); if( !Extensions::compositeOverlayAvailable()) return false; + if( !Extensions::shapeInputAvailable()) // needed in setupOverlay() + return false; #ifdef HAVE_XCOMPOSITE_OVERLAY overlay = XCompositeGetOverlayWindow( display(), rootWindow()); if( overlay == None ) @@ -342,6 +344,7 @@ bool Workspace::createOverlay() void Workspace::setupOverlay( Window w ) { assert( overlay != None ); + assert( Extensions::shapeInputAvailable()); XShapeCombineRectangles( display(), overlay, ShapeInput, 0, 0, NULL, 0, ShapeSet, Unsorted ); if( w != None ) {