From fb4b012013dab6d2d58efe41243017529a4ef33e Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 10 Oct 2011 15:09:39 +0100 Subject: [PATCH] i3bar: Bugfix: Add tray icon padding when calculating text position (Thanks Bacardi55) --- i3bar/src/xcb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)