[metacity/cowbell] public titlebar rect
- From: Thomas James Alexander Thurman <tthurman src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [metacity/cowbell] public titlebar rect
- Date: Fri, 23 Oct 2009 17:30:23 +0000 (UTC)
commit 40f1be65a06e8c61ac1fb566be9fb23c3682c552
Author: Thomas Thurman <tthurman gnome org>
Date: Fri Oct 23 13:14:45 2009 -0400
public titlebar rect
src/ui/theme.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 22191fc..650b843 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -997,6 +997,15 @@ meta_theme_calc_geometry (MetaTheme *theme,
fgeom->height =
fgeom->areas[CC_FRAME].height;
+ fgeom->title_rect.x =
+ fgeom->areas[CC_TITLE].x;
+ fgeom->title_rect.y =
+ fgeom->areas[CC_TITLE].y;
+ fgeom->title_rect.width =
+ fgeom->areas[CC_TITLE].width;
+ fgeom->title_rect.height =
+ fgeom->areas[CC_TITLE].height;
+
#if 0
/* see if we can write meta_theme_calc_geometry in terms of
* meta_theme_get_frame_borders
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]