[mutter] MetaWindowActor: Don't use uninitialized frame borders



commit 8c74ad1992c0c78bd74ade354695dc54743ffad0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Aug 26 01:07:51 2011 -0400

    MetaWindowActor: Don't use uninitialized frame borders
    
    https://bugzilla.gnome.org/show_bug.cgi?id=656335

 src/compositor/meta-window-actor.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 5426793..c41dae9 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -2117,6 +2117,8 @@ check_needs_reshape (MetaWindowActor *self)
 
   if (priv->window->frame)
     meta_frame_calc_borders (priv->window->frame, &borders);
+  else
+    meta_frame_borders_clear (&borders);
 
   region = meta_window_get_frame_bounds (priv->window);
   if (region != NULL)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]