From b091cbf361fbf19d23a287178a9044c038ad90af Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 26 Aug 2014 15:05:05 -0400 Subject: [PATCH] shaped-texture: Don't set a small minimum size The shaped-texture is effectively fixed size. It doesn't make sense to have less allocation than requested. --- src/compositor/meta-shaped-texture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index af5950afd..b3fe13204 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -505,7 +505,7 @@ meta_shaped_texture_get_preferred_width (ClutterActor *self, priv = META_SHAPED_TEXTURE (self)->priv; if (min_width_p) - *min_width_p = 0; + *min_width_p = priv->tex_width; if (natural_width_p) *natural_width_p = priv->tex_width; @@ -524,7 +524,7 @@ meta_shaped_texture_get_preferred_height (ClutterActor *self, priv = META_SHAPED_TEXTURE (self)->priv; if (min_height_p) - *min_height_p = 0; + *min_height_p = priv->tex_height; if (natural_height_p) *natural_height_p = priv->tex_height;