From 9941ae2ceac6b34167dfdac74cf37b57bf715179 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Sat, 7 Oct 2006 21:21:45 +0000 Subject: [PATCH] Windows with only shaped decorations are also shaped from the compositing point of view. svn path=/branches/work/kwin_composite/; revision=593455 --- scene_opengl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene_opengl.cpp b/scene_opengl.cpp index f2b1add65e..429d07a1a2 100644 --- a/scene_opengl.cpp +++ b/scene_opengl.cpp @@ -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(),