From 1c5cd1ec579ebd10a8109cfbba1a8e0acd70860d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 4 Oct 2007 12:55:19 +0200 Subject: [PATCH] bugfix: add a pixel more for tags drawing, this allows all fonts size to work --- statusbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statusbar.c b/statusbar.c index 537ea9a37..a6a9da70e 100644 --- a/statusbar.c +++ b/statusbar.c @@ -56,7 +56,7 @@ drawstatusbar(Display *disp, DC *drawcontext, awesome_config * awesomeconf) drawcontext->x = drawcontext->y = 0; for(i = 0; i < awesomeconf->ntags; i++) { - drawcontext->w = textwidth(disp, drawcontext->font, awesomeconf->tags[i].name, a_strlen(awesomeconf->tags[i].name)) + drawcontext->font->height; + drawcontext->w = textwidth(disp, drawcontext->font, awesomeconf->tags[i].name, a_strlen(awesomeconf->tags[i].name)) + drawcontext->font->height + 1; if(awesomeconf->tags[i].selected) { drawtext(disp, awesomeconf->phys_screen, drawcontext, awesomeconf->statusbar.drawable, awesomeconf->tags[i].name, drawcontext->sel, drawcontext->text_selected);