diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/theme.c | 20 |
2 files changed, 17 insertions, 8 deletions
@@ -1,3 +1,8 @@ +2002-08-27 Havoc Pennington <hp@pobox.com> + + * src/theme.c (meta_frame_layout_calc_geometry): always apply + rounding for shaded windows, fixes Bluecurve theme when shaded + 2002-08-25 Havoc Pennington <hp@pobox.com> * src/window.c (meta_window_free): when freeing a fullscreen diff --git a/src/theme.c b/src/theme.c index 2aa8ef6..d243076 100644 --- a/src/theme.c +++ b/src/theme.c @@ -403,6 +403,7 @@ meta_frame_layout_calc_geometry (const MetaFrameLayout *layout, int title_right_edge; int width, height; int button_width, button_height; + int min_size_for_rounding; meta_frame_layout_get_borders (layout, text_height, flags, @@ -567,26 +568,29 @@ meta_frame_layout_calc_geometry (const MetaFrameLayout *layout, fgeom->title_rect.height = 0; } -#define MIN_SIZE_FOR_ROUNDING 3 - + if (flags & META_FRAME_SHADED) + min_size_for_rounding = 0; + else + min_size_for_rounding = 3; + fgeom->top_left_corner_rounded = FALSE; fgeom->top_right_corner_rounded = FALSE; fgeom->bottom_left_corner_rounded = FALSE; fgeom->bottom_right_corner_rounded = FALSE; - if (fgeom->top_height >= MIN_SIZE_FOR_ROUNDING) + if (fgeom->top_height >= min_size_for_rounding) { - if (fgeom->left_width >= MIN_SIZE_FOR_ROUNDING) + if (fgeom->left_width >= min_size_for_rounding) fgeom->top_left_corner_rounded = layout->top_left_corner_rounded; - if (fgeom->right_width >= MIN_SIZE_FOR_ROUNDING) + if (fgeom->right_width >= min_size_for_rounding) fgeom->top_right_corner_rounded = layout->top_right_corner_rounded; } - if (fgeom->bottom_height >= MIN_SIZE_FOR_ROUNDING) + if (fgeom->bottom_height >= min_size_for_rounding) { - if (fgeom->left_width >= MIN_SIZE_FOR_ROUNDING) + if (fgeom->left_width >= min_size_for_rounding) fgeom->bottom_left_corner_rounded = layout->bottom_left_corner_rounded; - if (fgeom->right_width >= MIN_SIZE_FOR_ROUNDING) + if (fgeom->right_width >= min_size_for_rounding) fgeom->bottom_right_corner_rounded = layout->bottom_right_corner_rounded; } } |