From 47353f88c7c02c386477ea4759de6f548b8ba5b0 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Thu, 13 Jun 2002 17:26:39 +0000 Subject: [PATCH] Set client height as 0 when the window actually is shaded, not the other 2002-06-13 Anders Carlsson * src/theme.c (meta_frame_layout_calc_geometry): Set client height as 0 when the window actually is shaded, not the other way around. --- ChangeLog | 5 +++++ src/theme.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 31ac850db..695d425c9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-06-13 Anders Carlsson + + * src/theme.c (meta_frame_layout_calc_geometry): Set client height + as 0 when the window actually is shaded, not the other way around. + 2002-06-12 Havoc Pennington * src/theme.c (meta_frame_layout_calc_geometry): when a window is diff --git a/src/theme.c b/src/theme.c index fe4b5512f..1ca8a5727 100644 --- a/src/theme.c +++ b/src/theme.c @@ -412,7 +412,8 @@ meta_frame_layout_calc_geometry (const MetaFrameLayout *layout, &fgeom->right_width); width = client_width + fgeom->left_width + fgeom->right_width; - height = ((flags & META_FRAME_SHADED) ? client_height : 0) + + + height = ((flags & META_FRAME_SHADED) ? 0: client_height) + fgeom->top_height + fgeom->bottom_height; fgeom->width = width;