Return empty shape region if XShapeGetRectangles() returns null.

svn path=/trunk/KDE/kdebase/workspace/; revision=781850
remotes/origin/Plasma/5.0
Rivo Laks 18 years ago
parent 3f581b4d0c
commit c920574f4d
  1. 2
      scene.cpp

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

Loading…
Cancel
Save