Skip to content
Snippets Groups Projects
Commit d2c453d5 authored by Olivier Fourdan's avatar Olivier Fourdan :tools:
Browse files

frame: Do not use the pre-computed font height


Bug: 16067

Signed-off-by: default avatarOlivier Fourdan <fourdan@xfce.org>

(cherry picked from commit e3bf9ae5)
parent bdb4f706
No related branches found
No related tags found
No related merge requests found
......@@ -205,14 +205,7 @@ frameCreateTitlePixmap (Client * c, int state, int left, int right, xfwmPixmap *
}
pango_layout_get_pixel_extents (layout, NULL, &logical_rect);
title_height = screen_info->font_height;
if (!title_height)
{
/* If for some reason the font height is not known,
* use the actual pango layout height.
*/
title_height = logical_rect.height;
}
title_height = logical_rect.height;
title_y = voffset + (frameDecorationTop(screen_info) - title_height) / 2;
if (title_y + title_height > frameDecorationTop(screen_info))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment