aboutsummaryrefslogtreecommitdiff
path: root/swaybar/render.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-08 09:19:47 -0400
committerGitHub <noreply@github.com>2018-09-08 09:19:47 -0400
commit3600b3db577298bc553c394a4b09e71163f76561 (patch)
treea1defcadae4b1d07388fd9e6bfe2a09051aec777 /swaybar/render.c
parent030b5bc02455bc936a9a7fedc05c3f9b7c813098 (diff)
parent9215ca0f01f7d155191d11fd9caa2574387c6f84 (diff)
downloadsway-3600b3db577298bc553c394a4b09e71163f76561.tar.xz
Merge pull request #2602 from RyanDwyer/fix-title-textures
Fix gaps in title textures and vertically center them
Diffstat (limited to 'swaybar/render.c')
-rw-r--r--swaybar/render.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/swaybar/render.c b/swaybar/render.c
index 702e863c..7303e70f 100644
--- a/swaybar/render.c
+++ b/swaybar/render.c
@@ -33,8 +33,8 @@ static uint32_t render_status_line_error(cairo_t *cairo,
int ws_vertical_padding = WS_VERTICAL_PADDING * output->scale;
int text_width, text_height;
- get_text_size(cairo, config->font,
- &text_width, &text_height, output->scale, false, "%s", error);
+ get_text_size(cairo, config->font, &text_width, &text_height, NULL,
+ output->scale, false, "%s", error);
uint32_t ideal_height = text_height + ws_vertical_padding * 2;
uint32_t ideal_surface_height = ideal_height / output->scale;
@@ -63,7 +63,7 @@ static uint32_t render_status_line_text(cairo_t *cairo,
config->colors.focused_statusline : config->colors.statusline);
int text_width, text_height;
- get_text_size(cairo, config->font, &text_width, &text_height,
+ get_text_size(cairo, config->font, &text_width, &text_height, NULL,
output->scale, config->pango_markup, "%s", text);
int ws_vertical_padding = WS_VERTICAL_PADDING * output->scale;
@@ -126,7 +126,7 @@ static uint32_t render_status_block(cairo_t *cairo,
uint32_t height = surface_height * output->scale;
int text_width, text_height;
- get_text_size(cairo, config->font, &text_width, &text_height,
+ get_text_size(cairo, config->font, &text_width, &text_height, NULL,
output->scale, block->markup, "%s", block->full_text);
int margin = 3 * output->scale;
@@ -157,7 +157,7 @@ static uint32_t render_status_block(cairo_t *cairo,
int sep_width, sep_height;
if (!edge) {
if (config->sep_symbol) {
- get_text_size(cairo, config->font, &sep_width, &sep_height,
+ get_text_size(cairo, config->font, &sep_width, &sep_height, NULL,
output->scale, false, "%s", config->sep_symbol);
uint32_t _ideal_height = sep_height + ws_vertical_padding * 2;
uint32_t _ideal_surface_height = _ideal_height / output->scale;
@@ -297,7 +297,7 @@ static uint32_t render_binding_mode_indicator(cairo_t *cairo,
uint32_t height = surface_height * output->scale;
int text_width, text_height;
- get_text_size(cairo, config->font, &text_width, &text_height,
+ get_text_size(cairo, config->font, &text_width, &text_height, NULL,
output->scale, config->mode_pango_markup,
"%s", mode);
@@ -379,7 +379,7 @@ static uint32_t render_workspace_button(cairo_t *cairo,
uint32_t height = surface_height * output->scale;
int text_width, text_height;
- get_text_size(cairo, config->font, &text_width, &text_height,
+ get_text_size(cairo, config->font, &text_width, &text_height, NULL,
output->scale, config->pango_markup, "%s", name);
int ws_vertical_padding = WS_VERTICAL_PADDING * output->scale;