[metacity/cowbell] titlebar area coordinates and area calculation
- From: Thomas James Alexander Thurman <tthurman src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [metacity/cowbell] titlebar area coordinates and area calculation
- Date: Fri, 23 Oct 2009 16:07:22 +0000 (UTC)
commit d8533c6e50ffce4f9355b3bd781d5f03eb337850
Author: Thomas Thurman <tthurman gnome org>
Date: Fri Oct 23 12:07:18 2009 -0400
titlebar area coordinates and area calculation
src/ui/theme.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index a74da3a..4d78143 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -825,7 +825,8 @@ meta_theme_calc_geometry (MetaTheme *theme,
fgeom->areas[CC_FRAME].bottom_edge;
/* Next, the content area. */
- fgeom->areas[CC_CONTENT].x = fgeom->areas[CC_FRAME].left_edge;
+ fgeom->areas[CC_CONTENT].x =
+ fgeom->areas[CC_FRAME].left_edge;
fgeom->areas[CC_CONTENT].y =
fgeom->areas[CC_FRAME].top_edge +
fgeom->areas[CC_TITLEBAR].top_edge +
@@ -842,6 +843,20 @@ meta_theme_calc_geometry (MetaTheme *theme,
client_height +
fgeom->areas[CC_CONTENT].bottom_edge;
+ /* Next, the titlebar. */
+ fgeom->areas[CC_TITLEBAR].x =
+ fgeom->areas[CC_FRAME].left_edge;
+ fgeom->areas[CC_TITLEBAR].y =
+ fgeom->areas[CC_FRAME].top_edge;
+ fgeom->areas[CC_TITLEBAR].width =
+ fgeom->areas[CC_CONTENT].width;
+ fgeom->areas[CC_TITLEBAR].height =
+ fgeom->areas[CC_TITLEBAR].top_edge +
+ fgeom->areas[CC_TITLE].top_edge +
+ text_height +
+ fgeom->areas[CC_TITLE].bottom_edge +
+ fgeom->areas[CC_TITLEBAR].bottom_edge;
+
/*
Memo to self: identifiers are:
CC_FRAME,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]