From: Michael Stapelberg Date: Mon, 10 Oct 2011 14:09:39 +0000 (+0100) Subject: i3bar: Bugfix: Add tray icon padding when calculating text position (Thanks Bacardi55) X-Git-Tag: 4.1~105 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;ds=sidebyside;h=fb4b012013dab6d2d58efe41243017529a4ef33e;p=i3%2Fi3 i3bar: Bugfix: Add tray icon padding when calculating text position (Thanks Bacardi55) --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index bb78d5e9..4bbc8da7 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -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)