aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-10-07 14:56:44 -0400
committerDrew DeVault <sir@cmpwn.com>2016-10-12 21:42:51 -0400
commitf1c5ba0a10a5e95c6ea20001d1d7c632bf898811 (patch)
tree0d87adc5d9adb7bb289bbed6c17505888ee624df
parenta92d427b3753af16758efb60c6bf4a44871620d6 (diff)
downloadsway-f1c5ba0a10a5e95c6ea20001d1d7c632bf898811.zip
sway-f1c5ba0a10a5e95c6ea20001d1d7c632bf898811.tar.gz
sway-f1c5ba0a10a5e95c6ea20001d1d7c632bf898811.tar.bz2
Merge pull request #937 from alkino/fix_scale_factor
Add constant scale factor in get_text_size
-rw-r--r--sway/border.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/border.c b/sway/border.c
index c64fad7..ea29617 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);