mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 12:33:50 +01:00
Fix line length calculation
This commit is contained in:
parent
2e6c43e62b
commit
ee4e245f16
@ -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 New Issue
Block a user