summaryrefslogtreecommitdiffstats
path: root/sway/border.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/border.c')
-rw-r--r--sway/border.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/border.c b/sway/border.c
index 65f69411..09bf05e9 100644
--- a/sway/border.c
+++ b/sway/border.c
@@ -92,7 +92,7 @@ int get_font_text_height(const char *font) {
92 cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 200, 200); 92 cairo_surface_t *surface = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, 200, 200);
93 cairo_t *cr = cairo_create(surface); 93 cairo_t *cr = cairo_create(surface);
94 int width, height; 94 int width, height;
95 get_text_size(cr, font, &width, &height, false, "Gg"); 95 get_text_size(cr, font, &width, &height, 1, false, "Gg");
96 cairo_surface_destroy(surface); 96 cairo_surface_destroy(surface);
97 cairo_destroy(cr); 97 cairo_destroy(cr);
98 return height; 98 return height;
@@ -180,7 +180,7 @@ static void render_title_bar(swayc_t *view, cairo_t *cr, struct wlc_geometry *b,
180 get_text_size(cr, config->font, &width, &height, false, "%s", view->name); 180 get_text_size(cr, config->font, &width, &height, false, "%s", view->name);
181 cairo_move_to(cr, x + 2, y + 2); 181 cairo_move_to(cr, x + 2, y + 2);
182 cairo_set_source_u32(cr, colors->text); 182 cairo_set_source_u32(cr, colors->text);
183 pango_printf(cr, config->font, false, "%s", view->name); 183 pango_printf(cr, config->font, 1, false, "%s", view->name);
184 } 184 }
185 185
186 // titlebars has a border all around for tabbed layouts 186 // titlebars has a border all around for tabbed layouts