keep a small space on the sides of windows between the edge and the text
This commit is contained in:
parent
549627402c
commit
0901ddf891
1 changed files with 3 additions and 1 deletions
|
@ -125,7 +125,9 @@ void RrFontDraw(XftDraw *d, RrTextureText *t, Rect *area)
|
||||||
/* center vertically */
|
/* center vertically */
|
||||||
y = area->y +
|
y = area->y +
|
||||||
(area->height - RrFontHeight(t->font, t->shadow, t->offset)) / 2;
|
(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;
|
h = area->height;
|
||||||
|
|
||||||
text = g_string_new(t->string);
|
text = g_string_new(t->string);
|
||||||
|
|
Loading…
Reference in a new issue