compositor: Fix crash when adding a window with an opaque region

If _NET_WM_OPAQUE_REGION is set when the window is first mapped, the
initial load_properties will happen before the window actor is created,
and we'll have a call to meta_compositor_window_shape_changed. Just
fizzle this call out instead of doing anything fancy, as we'll pick
up the opaque region when the window actor is eventually created.

https://bugzilla.gnome.org/show_bug.cgi?id=695813
This commit is contained in:
Jasper St. Pierre 2013-03-13 22:34:20 -04:00
parent cce5ad7cc0
commit 1f905bd0e2

View File

@ -784,6 +784,9 @@ meta_compositor_window_shape_changed (MetaCompositor *compositor,
{
MetaWindowActor *window_actor;
window_actor = META_WINDOW_ACTOR (meta_window_get_compositor_private (window));
if (!window_actor)
return;
meta_window_actor_update_shape (window_actor);
}