[mutter] wayland-surface: Make sure to zero out the geometry



commit 817995d97fb559642ae7c3790d6dcd11dc382233
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sun Jul 27 15:21:51 2014 +0200

    wayland-surface: Make sure to zero out the geometry
    
    Otherwise our implicit surface geometry calculation will be junk.

 src/wayland/meta-wayland-surface.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c
index eed154c..77bef1b 100644
--- a/src/wayland/meta-wayland-surface.c
+++ b/src/wayland/meta-wayland-surface.c
@@ -212,7 +212,7 @@ toplevel_surface_commit (MetaWaylandSurface      *surface,
   /* We resize X based surfaces according to X events */
   if (window->client_type == META_WINDOW_CLIENT_TYPE_WAYLAND)
     {
-      MetaRectangle geom;
+      MetaRectangle geom = { 0 };
 
       if (pending->has_new_geometry)
         {


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