aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Cornu <ncornu@aldebaran.com>2016-10-07 20:38:56 +0200
committerNicolas Cornu <ncornu@aldebaran.com>2016-10-07 20:38:56 +0200
commit2d82586c88c192574dd19addd07149bd22aece87 (patch)
treecf9be2b8c0353e5b986317f126773ec0dbb1d798
parent02dc4142c0093675b7a12cf01c688ea05b81bd19 (diff)
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.
-rw-r--r--sway/border.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/border.c b/sway/border.c
index c64fad70..ea29617f 100644
--- a/sway/border.c
+++ b/sway/border.c
@@ -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);