[mutter] shaped-texture: Don't set a small minimum size
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] shaped-texture: Don't set a small minimum size
- Date: Wed, 27 Aug 2014 14:00:53 +0000 (UTC)
commit b091cbf361fbf19d23a287178a9044c038ad90af
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Aug 26 15:05:05 2014 -0400
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 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c
index af5950a..b3fe132 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]