[metacity/cowbell] generate width/height



commit d848e8e300b149a662437f503e452f3091363a5a
Author: Thomas Thurman <tthurman gnome org>
Date:   Mon Oct 19 16:38:14 2009 -0400

    generate width/height

 src/ui/theme.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 85f1a25..8a1201b 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -743,8 +743,8 @@ meta_theme_calc_geometry (MetaTheme              *theme,
                                 &(fgeom->left_width),
                                 &(fgeom->right_width));
 
-  fgeom->width = 40+client_width;
-  fgeom->height = 40+client_height;
+  fgeom->width = client_width+(fgeom->top_height)+(fgeom->bottom_height);
+  fgeom->height = client_height+(fgeom->left_width)+(fgeom->right_width);
 
   clear_rect (&(fgeom->title_rect));
 



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