aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-04-17 11:35:22 -0400
committerDrew DeVault <sir@cmpwn.com>2016-04-17 11:36:03 -0400
commit84fae94ab9ca7fd148c786d224c49205a212882e (patch)
treed3d3e8a16f96e400ee07cc44e2f9110195bea02a /sway
parent083316c5cec77a20d29857b2c2743cbc6ded827b (diff)
Flesh out pango markup implementation
Diffstat (limited to 'sway')
-rw-r--r--sway/border.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/border.c b/sway/border.c
index 411c0427..3613d2d6 100644
--- a/sway/border.c
+++ b/sway/border.c
@@ -85,7 +85,7 @@ int get_font_text_height(const char *font) {
cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 200, 200);
cairo_t *cr = cairo_create(surface);
int width, height;
- get_text_size(cr, font, &width, &height, "Gg");
+ get_text_size(cr, font, &width, &height, false, "Gg");
cairo_surface_destroy(surface);
cairo_destroy(cr);
return height;
@@ -162,7 +162,7 @@ static void render_with_title_bar(swayc_t *view, cairo_t *cr, struct border_colo
int y = MIN(view->actual_geometry.origin.y - height - 2, 2);
cairo_move_to(cr, x, y);
cairo_set_source_u32(cr, colors->text);
- pango_printf(cr, config->font, "%s", view->name);
+ pango_printf(cr, config->font, false, "%s", view->name);
}
// header bottom line