i3bar: Bugfix: Add tray icon padding when calculating text position (Thanks Bacardi55)
This commit is contained in:
parent
51116b46f1
commit
fb4b012013
|
@ -1418,7 +1418,7 @@ void draw_bars() {
|
||||||
/* We assume the tray icons are quadratic (we use the font
|
/* We assume the tray icons are quadratic (we use the font
|
||||||
* *height* as *width* of the icons) because we configured them
|
* *height* as *width* of the icons) because we configured them
|
||||||
* like this. */
|
* like this. */
|
||||||
traypx += font_height;
|
traypx += font_height + 2;
|
||||||
}
|
}
|
||||||
/* Add 2px of padding if there are any tray icons */
|
/* Add 2px of padding if there are any tray icons */
|
||||||
if (traypx > 0)
|
if (traypx > 0)
|
||||||
|
|
Loading…
Reference in New Issue