bugfix: give one more pixel to not cut status text with some fonts
This commit is contained in:
parent
1c5cd1ec57
commit
2e0b2911e3
|
@ -74,7 +74,7 @@ drawstatusbar(Display *disp, DC *drawcontext, awesome_config * awesomeconf)
|
||||||
drawcontext->w = awesomeconf->statusbar.width;
|
drawcontext->w = awesomeconf->statusbar.width;
|
||||||
drawtext(disp, awesomeconf->phys_screen, drawcontext, awesomeconf->statusbar.drawable, awesomeconf->current_layout->symbol, drawcontext->norm, drawcontext->text_normal);
|
drawtext(disp, awesomeconf->phys_screen, drawcontext, awesomeconf->statusbar.drawable, awesomeconf->current_layout->symbol, drawcontext->norm, drawcontext->text_normal);
|
||||||
x = drawcontext->x + drawcontext->w;
|
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;
|
drawcontext->x = si[awesomeconf->screen].width - drawcontext->w;
|
||||||
if(drawcontext->x < x)
|
if(drawcontext->x < x)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue