mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Fix overly-wide mark textures
The width of the texture needs to be calculated using the string that is actually displayed in the texture.
This commit is contained in:
parent
00b10a93f1
commit
69a7b9215e
1 changed files with 1 additions and 1 deletions
|
@ -518,7 +518,7 @@ static void render_titlebar_text_texture(struct sway_output *output,
|
||||||
}
|
}
|
||||||
cairo_set_font_options(c, fo);
|
cairo_set_font_options(c, fo);
|
||||||
get_text_size(c, config->font, &width, NULL, &baseline, scale,
|
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_surface_destroy(dummy_surface);
|
||||||
cairo_destroy(c);
|
cairo_destroy(c);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue