forked from AuroraMiddleware/gtk
Yet another fix for shape handling
This should fix problems with awn and notify-osd.
This commit is contained in:
parent
b9516e70f5
commit
0efb24f589
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user