aboutsummaryrefslogtreecommitdiff
path: root/src/tsar.c
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-03-01 13:12:44 -0500
committeriamcheeseman <[hidden email]>2026-03-01 13:12:44 -0500
commit08cf82fb0ef8270ee62fad74272393a0d1dfb43a (patch)
tree594d5e9c7b8a5764ed6624f9f4977e5e2b1fef31 /src/tsar.c
parentf3696d311331e86a72c5cae2e42e66ebc51dcd6a (diff)
render components; allow setting components
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();