From c5e0330fb16ff3682e9f8b4d0cfa21c9a34ddb2b Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Sat, 16 Mar 2024 14:16:45 +0100 Subject: [PATCH] [dirty] more logs is better logs --- src/common/font.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common/font.c b/src/common/font.c index dd8d72e2..42ac0cc6 100644 --- a/src/common/font.c +++ b/src/common/font.c @@ -30,6 +30,7 @@ static PangoRectangle font_extents(struct font *font, const char *string) { PangoRectangle rect = { 0 }; + wlr_log(WLR_ERROR, "\tinitial rect height: %d", rect.height); if (!string) { return rect; } @@ -53,6 +54,7 @@ font_extents(struct font *font, const char *string) pango_layout_set_ellipsize(layout, PANGO_ELLIPSIZE_MIDDLE); pango_layout_get_extents(layout, NULL, &rect); pango_extents_to_pixels(&rect, NULL); + wlr_log(WLR_ERROR, "\textents_to_pixels height: %d", rect.height); /* we put a 2 px edge on each side - because Openbox does it :) */ /* TODO: remove the 4 pixel addition and always do the padding by the caller */