wayland-surface: Set actor size on buffer attach
authorRobert Bragg <robert@linux.intel.com>
Mon, 9 Jan 2012 19:03:59 +0000 (19:03 +0000)
committerNeil Roberts <neil@linux.intel.com>
Thu, 1 Mar 2012 11:41:51 +0000 (11:41 +0000)
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()

Reviewed-by: Neil Roberts <neil@linux.intel.com>
Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
clutter/wayland/clutter-wayland-surface.c

index a9d297a..c368c1e 100644 (file)
@@ -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 *