Set client height as 0 when the window actually is shaded, not the other

2002-06-13  Anders Carlsson  <andersca@gnu.org>

	* src/theme.c (meta_frame_layout_calc_geometry): Set client height
	as 0 when the window actually is shaded, not the other way around.
This commit is contained in:
Anders Carlsson 2002-06-13 17:26:39 +00:00 committed by Anders Carlsson
parent 7ff56e67e9
commit 47353f88c7
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-06-13 Anders Carlsson <andersca@gnu.org>
* 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 <hp@redhat.com>
* src/theme.c (meta_frame_layout_calc_geometry): when a window is

View File

@ -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;