From 1f905bd0e2562d36f1d3e458907f327605b3a10c Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 13 Mar 2013 22:34:20 -0400 Subject: [PATCH] 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 --- src/compositor/compositor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c index fcc9a0057..d6aa536f9 100644 --- a/src/compositor/compositor.c +++ b/src/compositor/compositor.c @@ -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); }