]> git.mdlowis.com Git - proto/labwc.git/commitdiff
theme: limit corner radius to the height of the titlebar
authorJohan Malm <jgm323@gmail.com>
Sat, 15 Jul 2023 20:53:50 +0000 (21:53 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 17 Jul 2023 19:12:14 +0000 (20:12 +0100)
src/theme.c

index 719cf06deacab024be658f81f4abc624ee77e812..43014460f672a00b61b787da5c3577cfab8a5787 100644 (file)
@@ -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) {