aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pipe.c6
-rw-r--r--src/tsar.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/pipe.c b/src/pipe.c
index 1ec694d..bb18622 100644
--- a/src/pipe.c
+++ b/src/pipe.c
@@ -67,9 +67,9 @@ void await_change(void) {
void make_change(char argv[MAX_ARGS][MAX_ARG_LEN], int argc) {
// printf("Making change with:\n");
- // for (int i = 0; i < argc; i++) {
- // printf("Arg %d: %s\n", i + 1, argv[i]);
- // }
+ for (int i = 0; i < argc; i++) {
+ // printf("Arg %d: %s\n", i + 1, argv[i]);
+ }
char *cmd = argv[0];
if (strcmp(cmd, "set") == 0) {
diff --git a/src/tsar.c b/src/tsar.c
index cfe5c13..8cc74c7 100644
--- a/src/tsar.c
+++ b/src/tsar.c
@@ -120,9 +120,9 @@ void draw_text(
);
size_t width = font->max_advance_width * utf8_strlen(comp->data);
- width += comp->margin_left + comp->margin_right;
+ width += comp->margin_left + comp->margin_right + comp_gap;
- XftDrawRect(xft_draw, comp->bg, x, y, width, bar_height);
+ XftDrawRect(xft_draw, comp->bg, x - comp_gap/2, y, width, bar_height);
x += comp->margin_left;