[mutter] meta-window-actor: Make sure that the shape_region is always set
- From: Adel Gadllah <agadllah src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] meta-window-actor: Make sure that the shape_region is always set
- Date: Sat, 9 Feb 2013 19:56:10 +0000 (UTC)
commit 1c680be11a52e34b84502eef3b48ebfef75ca429
Author: Adel Gadllah <adel gadllah gmail com>
Date: Sat Feb 9 20:50:56 2013 +0100
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 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 30c63c4..9dc56b2 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]