i3bar: Bugfix: Add tray icon padding when calculating text position (Thanks Bacardi55)

next
Michael Stapelberg 2011-10-10 15:09:39 +01:00
parent 51116b46f1
commit fb4b012013
1 changed files with 1 additions and 1 deletions

View File

@ -1418,7 +1418,7 @@ void draw_bars() {
/* We assume the tray icons are quadratic (we use the font
* *height* as *width* of the icons) because we configured them
* like this. */
traypx += font_height;
traypx += font_height + 2;
}
/* Add 2px of padding if there are any tray icons */
if (traypx > 0)