From 1c680be11a52e34b84502eef3b48ebfef75ca429 Mon Sep 17 00:00:00 2001 From: Adel Gadllah Date: Sat, 9 Feb 2013 20:50:56 +0100 Subject: [PATCH] meta-window-actor: Make sure that the shape_region is always set Start off with an empty region to make sure that the shape_region is always set even for unredirected and frozen windows. https://bugzilla.gnome.org/show_bug.cgi?id=693482 --- src/compositor/meta-window-actor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 30c63c423..9dc56b223 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -362,9 +362,9 @@ meta_window_actor_constructed (GObject *object) meta_window_actor_update_opacity (self); - /* Force a reshape to ensure that we always have a set shape_region. */ - meta_window_actor_update_shape (self); - check_needs_reshape (self); + /* Start off with an empty region to maintain the invariant that + the shape region is always set */ + priv->shape_region = cairo_region_create(); } static void