1
0
Fork 0

fix from Garrett LeSage for which button backgrounds we draw when

2002-11-03  Havoc Pennington  <hp@pobox.com>

	* src/theme.c (meta_frame_layout_calc_geometry): fix from Garrett
	LeSage for which button backgrounds we draw when
This commit is contained in:
Havoc Pennington 2002-11-03 19:55:38 +00:00 committed by Havoc Pennington
parent 6a1abc7482
commit ee84fbb81f
2 changed files with 9 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2002-11-03 Havoc Pennington <hp@pobox.com>
* src/theme.c (meta_frame_layout_calc_geometry): fix from Garrett
LeSage for which button backgrounds we draw when
2002-11-03 Havoc Pennington <hp@pobox.com>
* src/workspace.c (meta_workspace_get_name): new function,

View file

@ -576,9 +576,9 @@ meta_frame_layout_calc_geometry (const MetaFrameLayout *layout,
while (i < n_left)
{
if (i == 0) /* prefer left background if only one button */
left_bg_rects[i] = &fgeom->left_right_background;
else if (i == (n_left - 1))
left_bg_rects[i] = &fgeom->left_left_background;
else if (i == (n_left - 1))
left_bg_rects[i] = &fgeom->left_right_background;
else
left_bg_rects[i] = &fgeom->left_middle_backgrounds[i-1];
@ -589,9 +589,9 @@ meta_frame_layout_calc_geometry (const MetaFrameLayout *layout,
while (i < n_right)
{
if (i == (n_right - 1)) /* prefer right background if only one button */
right_bg_rects[i] = &fgeom->right_left_background;
else if (i == 0)
right_bg_rects[i] = &fgeom->right_right_background;
else if (i == 0)
right_bg_rects[i] = &fgeom->right_left_background;
else
right_bg_rects[i] = &fgeom->right_middle_backgrounds[i-1];