sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 69a7b9215e7bf5296891913337055bc9e0d84d88
parent 00b10a93f12f228428cd35f16f3611bba85bf079
Author: Daniel De Graaf <code@danieldg.net>
Date:   Sat,  4 Sep 2021 11:16:55 -0400

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:
Msway/tree/container.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/tree/container.c b/sway/tree/container.c @@ -518,7 +518,7 @@ static void render_titlebar_text_texture(struct sway_output *output, } cairo_set_font_options(c, fo); get_text_size(c, config->font, &width, NULL, &baseline, scale, - config->pango_markup, "%s", con->formatted_title); + config->pango_markup, "%s", text); cairo_surface_destroy(dummy_surface); cairo_destroy(c);