]> git.sur5r.net Git - i3/i3/commitdiff
i3bar: Bugfix: Add tray icon padding when calculating text position (Thanks Bacardi55)
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 10 Oct 2011 14:09:39 +0000 (15:09 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 10 Oct 2011 14:09:39 +0000 (15:09 +0100)
i3bar/src/xcb.c

index bb78d5e9cb748136b22bfcbed67ba95f7ad9b403..4bbc8da728764d1e3c6a5c0c7f0b215b95739acb 100644 (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)