all repos — tint2 @ 1b48efe738502e0f5f54e500444860c2ad567d7e

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

Executor: add a bit of slack in the pango text layout, to avoid wrapping due to rounding errors
o9000 mrovi9000@gmail.com
commit

1b48efe738502e0f5f54e500444860c2ad567d7e

parent

40e01e2abf14b24ec0a9c9827c006de58ea66a1b

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/execplugin/execplugin.csrc/execplugin/execplugin.c

@@ -486,7 +486,7 @@ }

// draw layout pango_layout_set_font_description(layout, execp->backend->font_desc); - pango_layout_set_width(layout, execp->frontend->textw * PANGO_SCALE); + pango_layout_set_width(layout, (execp->frontend->textw + 1) * PANGO_SCALE); pango_layout_set_alignment(layout, execp->backend->centered ? PANGO_ALIGN_CENTER : PANGO_ALIGN_LEFT); pango_layout_set_wrap(layout, PANGO_WRAP_WORD_CHAR); pango_layout_set_ellipsize(layout, PANGO_ELLIPSIZE_NONE);