feat: implement <font place="InactiveWindow"> (ref scope: 2.4.7) (#1292)

* feat: implement <font place="InactiveWindow"> (ref scope: 2.4.7)
* docs: add inactivewindow
This commit is contained in:
Ludgie 2023-12-07 09:28:27 +01:00 committed by GitHub
parent d59b1d0966
commit b34d074063
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 25 additions and 3 deletions

View file

@ -848,7 +848,7 @@ create_corners(struct theme *theme)
static void
post_processing(struct theme *theme)
{
int h = font_height(&rc.font_activewindow);
int h = MAX(font_height(&rc.font_activewindow), font_height(&rc.font_inactivewindow));
if (theme->title_height < h) {
theme->title_height = h + 2 * theme->padding_height;
}