[clutter/wip/wayland: 16/45] wayland-surface: Set actor size on buffer attach



commit 083c4613d48ef4bddc49e34ad57901947bbc655a
Author: Robert Bragg <robert linux intel com>
Date:   Mon Jan 9 19:03:59 2012 +0000

    wayland-surface: Set actor size on buffer attach
    
    When a new buffer is attached and we update the width and height
    properties for the surface we now also call clutter_actor_set_size()

 clutter/wayland/clutter-wayland-surface.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/clutter/wayland/clutter-wayland-surface.c b/clutter/wayland/clutter-wayland-surface.c
index a9d297a..c368c1e 100644
--- a/clutter/wayland/clutter-wayland-surface.c
+++ b/clutter/wayland/clutter-wayland-surface.c
@@ -211,6 +211,8 @@ set_size (ClutterWaylandSurface *self,
       priv->height = height;
       g_object_notify (G_OBJECT (self), "height");
     }
+
+  clutter_actor_set_size (CLUTTER_ACTOR (self), priv->width, priv->height);
 }
 
 struct wl_surface *



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