mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
[draw] Tell pango about padding
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
02c31eae05
commit
d3190fcf63
1 changed files with 1 additions and 1 deletions
|
@ -312,7 +312,7 @@ draw_text(DrawCtx *ctx,
|
|||
p_delete(&bg_color);
|
||||
}
|
||||
|
||||
pango_layout_set_width(ctx->layout, pango_units_from_double(area.width));
|
||||
pango_layout_set_width(ctx->layout, pango_units_from_double(area.width - padding));
|
||||
pango_layout_set_ellipsize(ctx->layout, PANGO_ELLIPSIZE_END);
|
||||
pango_layout_set_markup(ctx->layout, buf, len);
|
||||
pango_layout_set_font_description(ctx->layout, style.font->desc);
|
||||
|
|
Loading…
Reference in a new issue