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

This commit is contained in:
Michael Stapelberg 2011-10-10 15:09:39 +01:00
parent 51116b46f1
commit fb4b012013

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)