aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorLibravatar Daniel De Graaf <code@danieldg.net>2021-09-04 11:16:55 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2021-09-04 17:23:06 +0200
commit69a7b9215e7bf5296891913337055bc9e0d84d88 (patch)
treec36ac8c7e041c0dfefc9aa42dbd71561e91fc6a4 /sway/tree/container.c
parentcommands: update split none command for a047b5ee4 (diff)
downloadsway-69a7b9215e7bf5296891913337055bc9e0d84d88.tar.gz
sway-69a7b9215e7bf5296891913337055bc9e0d84d88.tar.zst
sway-69a7b9215e7bf5296891913337055bc9e0d84d88.zip
Fix overly-wide mark textures
The width of the texture needs to be calculated using the string that is actually displayed in the texture.
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 41d43b43..d66d3870 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -518,7 +518,7 @@ static void render_titlebar_text_texture(struct sway_output *output,
518 } 518 }
519 cairo_set_font_options(c, fo); 519 cairo_set_font_options(c, fo);
520 get_text_size(c, config->font, &width, NULL, &baseline, scale, 520 get_text_size(c, config->font, &width, NULL, &baseline, scale,
521 config->pango_markup, "%s", con->formatted_title); 521 config->pango_markup, "%s", text);
522 cairo_surface_destroy(dummy_surface); 522 cairo_surface_destroy(dummy_surface);
523 cairo_destroy(c); 523 cairo_destroy(c);
524 524