Created
July 5, 2020 18:53
-
-
Save enricozb/b6a916e1e03b0e21fab9c2eca3441a65 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c | |
index b6c6dac5..08188623 100644 | |
--- a/i3bar/src/xcb.c | |
+++ b/i3bar/src/xcb.c | |
@@ -113,7 +113,7 @@ static const int ws_hoff_px = 4; | |
static const int ws_voff_px = 3; | |
/* Offset between two workspace buttons */ | |
-static const int ws_spacing_px = 1; | |
+static const int ws_spacing_px = 0; | |
/* Offset between the statusline and 1) workspace buttons on the left | |
* 2) the tray or screen edge on the right */ | |
@@ -1976,13 +1976,13 @@ void reconfig_windows(bool redraw_bars) { | |
*/ | |
static void draw_button(surface_t *surface, color_t fg_color, color_t bg_color, color_t border_color, | |
int x, int width, int text_width, i3String *text) { | |
- int height = bar_height - 2 * logical_px(1); | |
+ int height = bar_height; | |
/* Draw the border of the button. */ | |
- draw_util_rectangle(surface, border_color, x, logical_px(1), width, height); | |
+ draw_util_rectangle(surface, border_color, x, 0, width, height); | |
/* Draw the inside of the button. */ | |
- draw_util_rectangle(surface, bg_color, x + logical_px(1), 2 * logical_px(1), | |
+ draw_util_rectangle(surface, bg_color, x + logical_px(1), logical_px(1), | |
width - 2 * logical_px(1), height - 2 * logical_px(1)); | |
draw_util_text(text, surface, fg_color, bg_color, x + (width - text_width) / 2, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment