Commit 0efb24f5 authored by Matthias Clasen's avatar Matthias Clasen

Yet another fix for shape handling

This should fix problems with awn and notify-osd.
parent b9516e70
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment