From 82b2f0aa7a1723632e8d3cf7dc772e4bdb66868a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 7 May 2007 06:33:43 +0000 Subject: popups fixes. if the text for the popup is empty now, there wont be extra padding for it. desktop name fixes. --- render/font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render/font.c') diff --git a/render/font.c b/render/font.c index 50b4208f..1ca1b768 100644 --- a/render/font.c +++ b/render/font.c @@ -137,7 +137,7 @@ static void font_measure_full(const RrFont *f, const gchar *str, pango_layout_set_text(f->layout, str, -1); pango_layout_set_width(f->layout, -1); pango_layout_get_pixel_extents(f->layout, NULL, &rect); - *x = rect.width + ABS(shadow_x); + *x = rect.width + ABS(shadow_x) + 4 /* we put a 2 px edge on each side */; *y = rect.height + ABS(shadow_y); } -- cgit v1.2.3