summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/theme.c20
1 files changed, 12 insertions, 8 deletions
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;
}
}