aboutsummaryrefslogtreecommitdiff
path: root/src/tsar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tsar.c')
-rw-r--r--src/tsar.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tsar.c b/src/tsar.c
index a4a0025..1570b92 100644
--- a/src/tsar.c
+++ b/src/tsar.c
@@ -126,7 +126,13 @@ int main(void) {
XResizeWindow(display, win, width, bar_height);
- draw_text("Hello, world!", 0, 0);
+
+ int x = 0;
+ for (int i = 0; i < left_size; i++) {
+ comp_t* comp = comps_left[i];
+ draw_text(comp->data, x, 0);
+ x += font->max_advance_width * strlen(comp->data);
+ }
XFlush(display);
await_change();