From 06b056eea222875b6a96ffe69ca400a51470001e Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Sat, 23 Feb 2013 00:46:41 +0000 Subject: [PATCH] actually use the result of calculate_width() --- x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x.c b/x.c index 1ad6377..c072da0 100644 --- a/x.c +++ b/x.c @@ -201,7 +201,7 @@ static colored_layout *r_init_shared(cairo_t *c, notification *n) int width = calculate_width(); if (xctx.geometry.w > 0) { - width = xctx.geometry.w - 2 * settings.h_padding; + width -= 2 * settings.h_padding; width -= 2 * settings.frame_width; r_setup_pango_layout(cl->l, width); } else {