From: Dana Jansens Date: Wed, 25 Jun 2003 21:17:15 +0000 (+0000) Subject: keep a small space on the sides of windows between the edge and the text X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=0901ddf8911cfaf0f0f3d3c4010809071be42855;p=chaz%2Fopenbox keep a small space on the sides of windows between the edge and the text --- diff --git a/render/font.c b/render/font.c index b9a17b48..e0a12a1a 100644 --- a/render/font.c +++ b/render/font.c @@ -125,7 +125,9 @@ void RrFontDraw(XftDraw *d, RrTextureText *t, Rect *area) /* center vertically */ y = area->y + (area->height - RrFontHeight(t->font, t->shadow, t->offset)) / 2; - w = area->width; + /* the +2 and -4 leave a small blank edge on the sides */ + x += 2; + w = area->width - 4; h = area->height; text = g_string_new(t->string);