osd: make item-border part of item-height

This commit is contained in:
Johan Malm 2023-07-05 19:49:56 +01:00 committed by Johan Malm
parent 660127acb0
commit 2c66fa279f
2 changed files with 13 additions and 12 deletions

View file

@ -540,7 +540,8 @@ post_processing(struct theme *theme)
theme->title_height = font_height(&rc.font_activewindow)
+ 2 * theme->padding_height;
theme->osd_window_switcher_item_height = font_height(&rc.font_osd)
+ 2 * theme->osd_window_switcher_item_padding_y;
+ 2 * theme->osd_window_switcher_item_padding_y
+ 2 * theme->osd_window_switcher_item_active_border_width;
if (rc.corner_radius >= theme->title_height) {
theme->title_height = rc.corner_radius + 1;