theme: limit corner radius to the height of the titlebar

This commit is contained in:
Johan Malm 2023-07-15 21:53:50 +01:00 committed by Johan Malm
parent 318d881650
commit aef5b45b5f

View file

@ -638,7 +638,7 @@ post_processing(struct theme *theme)
+ 2 * theme->osd_window_switcher_item_active_border_width; + 2 * theme->osd_window_switcher_item_active_border_width;
if (rc.corner_radius >= theme->title_height) { 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) { if (theme->menu_max_width < theme->menu_min_width) {