Pixmap pm = null;
try {
X11.Window win = getDrawable(w);
if (rectangles == null
|| ((pm = createBitmap(dpy, win, rectangles)) == null)) {
ext.XShapeCombineMask(dpy, win,
X11.Xext.ShapeBounding, 0, 0, Pixmap.None,
X11.Xext.ShapeSet);
} else {
ext.XShapeCombineMask(dpy, win,
X11.Xext.ShapeBounding, 0, 0, pm,