From: shdown Date: Sat, 21 Mar 2015 16:12:29 +0000 (+0300) Subject: i3bar: add binding indicator width to workspace buttons width X-Git-Tag: 4.10.1~43^2~3 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=commitdiff_plain;h=b28bb20caae6d7b04b4f99e906b97b5b540c16c2 i3bar: add binding indicator width to workspace buttons width Just to prevent the indicator from being overlapped by the statusline. --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index aa24fc22..79ac211d 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -1858,6 +1858,7 @@ void draw_bars(bool unhide) { draw_text(binding.name, outputs_walk->buffer, outputs_walk->bargc, i + 5, 3, binding.width); unhide = true; + i += logical_px(10) + binding.width + logical_px(1); } if (!TAILQ_EMPTY(&statusline_head)) {