Windows with only shaped decorations are also shaped

from the compositing point of view.


svn path=/branches/work/kwin_composite/; revision=593455
This commit is contained in:
Luboš Luňák 2006-10-07 21:21:45 +00:00
parent d44a4a3676
commit 9941ae2cea

View file

@ -321,7 +321,8 @@ QRegion SceneOpenGL::Window::shape() const
{
if( !shape_valid )
{
if( toplevel->shape())
Client* c = dynamic_cast< Client* >( toplevel );
if( toplevel->shape() || ( c != NULL && !c->mask().isEmpty()))
{
int count, order;
XRectangle* rects = XShapeGetRectangles( display(), toplevel->handle(),