aboutsummaryrefslogtreecommitdiff
path: root/src/tsar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tsar.c')
-rw-r--r--src/tsar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tsar.c b/src/tsar.c
index 2d9d041..927dd60 100644
--- a/src/tsar.c
+++ b/src/tsar.c
@@ -17,7 +17,7 @@ Window win;
GC gc;
XftFont* font = NULL;
-XftColor fg_color;
+XftColor xft_fg_color;
static int bar_width = 1000;
static float width_ratio = 1;
@@ -91,7 +91,7 @@ void init_x(void) {
DefaultVisual(display, DefaultScreen(display)),
DefaultColormap(display, DefaultScreen(display)),
"#FFFFFF",
- &fg_color
+ &xft_fg_color
);
gc = XCreateGC(display, win, 0, NULL);
@@ -115,7 +115,7 @@ void draw_text(const char* text, int x, int y) {
);
int dy = y + (bar_height - font->height) / 2 + font->ascent;
- XftDrawString8(xft_draw, &fg_color, font, x, dy, (const FcChar8*)text, strlen(text));
+ XftDrawString8(xft_draw, &xft_fg_color, font, x, dy, (const FcChar8*)text, strlen(text));
XftDrawDestroy(xft_draw);
}