From aef5b45b5f9db251c0fcfacfeab7be744f5334da Mon Sep 17 00:00:00 2001 From: Johan Malm Date: Sat, 15 Jul 2023 21:53:50 +0100 Subject: [PATCH] theme: limit corner radius to the height of the titlebar --- src/theme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme.c b/src/theme.c index 719cf06d..43014460 100644 --- a/src/theme.c +++ b/src/theme.c @@ -638,7 +638,7 @@ post_processing(struct theme *theme) + 2 * theme->osd_window_switcher_item_active_border_width; if (rc.corner_radius >= theme->title_height) { - theme->title_height = rc.corner_radius + 1; + rc.corner_radius = theme->title_height - 1; } if (theme->menu_max_width < theme->menu_min_width) {