mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-27 21:58:16 +01:00
Add constant scale factor in get_text_size
af44154
forget one "get_text_size" made it possible to
do a format string by setting title bar.
This commit is contained in:
parent
02dc4142c0
commit
2d82586c88
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ static void render_title_bar(swayc_t *view, cairo_t *cr, struct wlc_geometry *b,
|
|||
// text
|
||||
if (view->name) {
|
||||
int width, height;
|
||||
get_text_size(cr, config->font, &width, &height, false, "%s", view->name);
|
||||
get_text_size(cr, config->font, &width, &height, 1, false, "%s", view->name);
|
||||
cairo_move_to(cr, x + 2, y + 2);
|
||||
cairo_set_source_u32(cr, colors->text);
|
||||
pango_printf(cr, config->font, 1, false, "%s", view->name);
|
||||
|
|
Loading…
Reference in a new issue