From 2e0b2911e3109d2cf51dda75d68d7d108eebdb6a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 4 Oct 2007 15:56:20 +0200 Subject: [PATCH] bugfix: give one more pixel to not cut status text with some fonts --- statusbar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statusbar.c b/statusbar.c index a6a9da70e..3519f4510 100644 --- a/statusbar.c +++ b/statusbar.c @@ -74,7 +74,7 @@ drawstatusbar(Display *disp, DC *drawcontext, awesome_config * awesomeconf) drawcontext->w = awesomeconf->statusbar.width; drawtext(disp, awesomeconf->phys_screen, drawcontext, awesomeconf->statusbar.drawable, awesomeconf->current_layout->symbol, drawcontext->norm, drawcontext->text_normal); x = drawcontext->x + drawcontext->w; - drawcontext->w = textwidth(disp, drawcontext->font, awesomeconf->statustext, a_strlen(awesomeconf->statustext)) + drawcontext->font->height; + drawcontext->w = textwidth(disp, drawcontext->font, awesomeconf->statustext, a_strlen(awesomeconf->statustext)) + drawcontext->font->height + 1; drawcontext->x = si[awesomeconf->screen].width - drawcontext->w; if(drawcontext->x < x) {