Return empty shape region if XShapeGetRectangles() returns null.

svn path=/trunk/KDE/kdebase/workspace/; revision=781850
This commit is contained in:
Rivo Laks 2008-03-03 19:17:56 +00:00
parent 3f581b4d0c
commit c920574f4d

View file

@ -353,7 +353,7 @@ QRegion Scene::Window::shape() const
XFree(rects); XFree(rects);
} }
else else
shape_region = QRegion( 0, 0, width(), height()); shape_region = QRegion();
} }
else else
shape_region = QRegion( 0, 0, width(), height()); shape_region = QRegion( 0, 0, width(), height());