diff options
author | emersion <contact@emersion.fr> | 2018-07-06 16:22:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 16:22:13 +0100 |
commit | b3c55dd909b070625c9bfcebcb89cb8463e2ffc9 (patch) | |
tree | 714db24403e159b89cf5eaa59ddbd6cccd033947 /swaybar | |
parent | 7ef08ffbe6dc9a0b35cd9cad0b689136e3515886 (diff) | |
parent | b8ee88344a5e2869fd3ce04762eda305dc5bf62e (diff) |
Merge branch 'master' into leaks
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/render.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index 327a6f5f..efd3fdeb 100644 --- a/swaybar/render.c +++ b/swaybar/render.c @@ -298,7 +298,8 @@ static uint32_t render_binding_mode_indicator(cairo_t *cairo, int text_width, text_height; get_text_size(cairo, config->font, &text_width, &text_height, - output->scale, config->pango_markup, "%s", mode); + output->scale, config->mode_pango_markup, + "%s", mode); int ws_vertical_padding = WS_VERTICAL_PADDING * output->scale; int ws_horizontal_padding = WS_HORIZONTAL_PADDING * output->scale; @@ -329,7 +330,7 @@ static uint32_t render_binding_mode_indicator(cairo_t *cairo, double text_y = height / 2.0 - text_height / 2.0; cairo_set_source_u32(cairo, config->colors.binding_mode.text); cairo_move_to(cairo, x + width / 2 - text_width / 2, (int)floor(text_y)); - pango_printf(cairo, config->font, output->scale, config->pango_markup, + pango_printf(cairo, config->font, output->scale, config->mode_pango_markup, "%s", mode); return surface_height; } |