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:
parent
5501ccbe26
commit
29a1c93e6a
4 changed files with 104 additions and 27 deletions
|
|
@ -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 .{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue