mirror of
https://github.com/swaywm/sway.git
synced 2024-12-27 15:36:29 +01:00
Fix line length calculation
This commit is contained in:
parent
2e6c43e62b
commit
ee4e245f16
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ void render(struct output *output, struct config *config, struct status_line *li
|
|||
int width, height;
|
||||
|
||||
if (line->protocol == TEXT) {
|
||||
get_text_size(window->cairo, window->font, &width, &height, true, "%s", line->text_line);
|
||||
get_text_size(window->cairo, window->font, &width, &height, config->plaintext_markup, "%s", line->text_line);
|
||||
cairo_move_to(cairo, window->width - margin - width, margin);
|
||||
pango_printf(window->cairo, window->font, config->plaintext_markup, "%s", line->text_line);
|
||||
} else if (line->protocol == I3BAR && line->block_line) {
|
||||
|
|
Loading…
Reference in a new issue