window-actor: Ensure we always have a valid shape_region

Force a reshape at startup to ensure that shape_region is always
constructed and valid, even if the window is unredirected or frozen.

https://bugzilla.gnome.org/show_bug.cgi?id=679901
This commit is contained in:
Jasper St. Pierre 2013-01-16 13:10:45 -05:00
parent 3900aa10f8
commit 07273a075d

View File

@ -155,6 +155,8 @@ static gboolean meta_window_actor_get_paint_volume (ClutterActor *actor,
static void meta_window_actor_detach (MetaWindowActor *self); static void meta_window_actor_detach (MetaWindowActor *self);
static gboolean meta_window_actor_has_shadow (MetaWindowActor *self); static gboolean meta_window_actor_has_shadow (MetaWindowActor *self);
static void check_needs_reshape (MetaWindowActor *self);
G_DEFINE_TYPE (MetaWindowActor, meta_window_actor, CLUTTER_TYPE_GROUP); G_DEFINE_TYPE (MetaWindowActor, meta_window_actor, CLUTTER_TYPE_GROUP);
static void static void
@ -359,7 +361,10 @@ meta_window_actor_constructed (GObject *object)
} }
meta_window_actor_update_opacity (self); 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); meta_window_actor_update_shape (self);
check_needs_reshape (self);
} }
static void static void