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(),