aboutsummaryrefslogtreecommitdiff
path: root/swaynag/render.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-28 09:48:37 -0400
committerBrian Ashworth <bosrsf04@gmail.com>2018-08-01 22:47:54 -0400
commit58f3fa74aeb3e0dd9500d687f3c97a6c10612c41 (patch)
tree75dcbd9ca4b3f47d6443719b63d11289ecbbf7df /swaynag/render.c
parent37709917b115e43a4aa824df8ada11edcaf499cc (diff)
Disable pango markup for extended message
Diffstat (limited to 'swaynag/render.c')
-rw-r--r--swaynag/render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/swaynag/render.c b/swaynag/render.c
index 134c247e..ef0f72a8 100644
--- a/swaynag/render.c
+++ b/swaynag/render.c
@@ -25,7 +25,7 @@ static uint32_t render_message(cairo_t *cairo, struct sway_nagbar *nagbar) {
cairo_set_source_u32(cairo, nagbar->type->text);
cairo_move_to(cairo, padding, (int)(ideal_height - text_height) / 2);
- pango_printf(cairo, nagbar->font, nagbar->scale, true, "%s",
+ pango_printf(cairo, nagbar->font, nagbar->scale, false, "%s",
nagbar->message);
return ideal_height;
@@ -86,7 +86,7 @@ static uint32_t render_detailed(cairo_t *cairo, struct sway_nagbar *nagbar,
nagbar->details.width = width - decor * 2;
PangoLayout *layout = get_pango_layout(cairo, nagbar->font,
- nagbar->details.message, nagbar->scale, true);
+ nagbar->details.message, nagbar->scale, false);
pango_layout_set_width(layout,
(nagbar->details.width - padding * 2) * PANGO_SCALE);
pango_layout_set_wrap(layout, PANGO_WRAP_WORD_CHAR);