Add clock to the bar

This implements more of the text rendering and a clock was the easiest
part. I still need to add the tag bit. I'd also like to hide the tags
but still show the clock like beanclock when windows are fullscreened
This commit is contained in:
Ben Buhse 2026-02-13 12:20:35 -06:00
commit 29a1c93e6a
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
4 changed files with 104 additions and 27 deletions

View file

@ -61,7 +61,7 @@ pub fn init(shm: *wl.Shm, width: u31, height: u31) !Buffer {
@as(c_int, @intCast(height)),
@as([*c]u32, @ptrCast(data)),
@as(c_int, @intCast(stride)),
) orelse return error.NoPixmanImage;
) orelse return error.FailedToCreatePixmanImage;
// The pixman image and the Wayland buffer now share the same memory.
return .{