aboutsummaryrefslogtreecommitdiff
path: root/swaybar/render.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-06 06:28:01 -0700
committerGitHub <noreply@github.com>2018-07-06 06:28:01 -0700
commit3d2595b1028ce1f7cf0ceff673e7180c6c991afb (patch)
treea645930a9b105185a5f2dbddbe8ca8acf50a4559 /swaybar/render.c
parentf63b209d51bab84aacb001adfd443c7f4c9a8cfe (diff)
parenta06d45a14d1f222a42d23bf1f49bb6995dc3b27b (diff)
Merge branch 'master' into remove-input-fix
Diffstat (limited to 'swaybar/render.c')
-rw-r--r--swaybar/render.c5
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;
}