Overlay window also needs input shape.
svn path=/trunk/KDE/kdebase/workspace/; revision=683158
This commit is contained in:
parent
9052116e4f
commit
8d929cb3fc
1 changed files with 3 additions and 0 deletions
|
@ -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 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue