]> git.sur5r.net Git - i3/i3/commitdiff
i3bar: add binding indicator width to workspace buttons width
authorshdown <shdownnine@gmail.com>
Sat, 21 Mar 2015 16:12:29 +0000 (19:12 +0300)
committershdown <shdownnine@gmail.com>
Sat, 21 Mar 2015 16:12:29 +0000 (19:12 +0300)
Just to prevent the indicator from being overlapped by the statusline.

i3bar/src/xcb.c

index aa24fc22d5ee25a12db0e4ee60314e675123e6dc..79ac211d39d717827d33b3c33221a9fbc00cf38f 100644 (file)
@@ -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)) {