diff options
| author | iamcheeseman <[hidden email]> | 2026-03-01 13:12:44 -0500 |
|---|---|---|
| committer | iamcheeseman <[hidden email]> | 2026-03-01 13:12:44 -0500 |
| commit | 08cf82fb0ef8270ee62fad74272393a0d1dfb43a (patch) | |
| tree | 594d5e9c7b8a5764ed6624f9f4977e5e2b1fef31 /src/tsar.c | |
| parent | f3696d311331e86a72c5cae2e42e66ebc51dcd6a (diff) | |
render components; allow setting components
Diffstat (limited to 'src/tsar.c')
| -rw-r--r-- | src/tsar.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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(); |
