bugfix: give one more pixel to not cut status text with some fonts

This commit is contained in:
Julien Danjou 2007-10-04 15:56:20 +02:00
parent 1c5cd1ec57
commit 2e0b2911e3
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{