Yet another fix for shape handling

This should fix problems with awn and notify-osd.
This commit is contained in:
Matthias Clasen 2010-04-06 20:30:39 -04:00
parent b9516e70f5
commit 0efb24f589

View File

@ -4610,10 +4610,7 @@ _xwindow_get_shape (Display *xdisplay,
window,
shape_type, &rn, &ord);
if (xrl == NULL)
return NULL; /* XShape not supported */
if (rn == 0)
if (xrl == NULL || rn == 0)
return gdk_region_new (); /* Empty */
if (ord != YXBanded)