diff options
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.zig b/src/main.zig index 2c30db5..366754b 100644 --- a/src/main.zig +++ b/src/main.zig @@ -15,13 +15,13 @@ pub fn main() !void { const screen: *c.xcb_screen_t = @ptrCast(c.xcb_setup_roots_iterator(c.xcb_get_setup(conn)).data); - var foreground = c.xcb_generate_id(conn); + const foreground = c.xcb_generate_id(conn); mask = c.XCB_GC_FOREGROUND | c.XCB_GC_GRAPHICS_EXPOSURES; values[0] = screen.black_pixel; values[1] = 0; _ = c.xcb_create_gc(conn, foreground, screen.root, mask, @ptrCast(&values)); - var background = c.xcb_generate_id(conn); + const background = c.xcb_generate_id(conn); mask = c.XCB_GC_BACKGROUND | c.XCB_GC_GRAPHICS_EXPOSURES; values[0] = screen.white_pixel; values[1] = 0; @@ -38,7 +38,7 @@ pub fn main() !void { _ = c.xcb_flush(conn); while (true) { - var e = c.xcb_wait_for_event(conn) orelse break; + const e = c.xcb_wait_for_event(conn) orelse break; defer std.c.free(e); switch (e.*.response_type & ~@as(u8, 0x80)) { c.XCB_EXPOSE => { |