summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-01-25 23:26:30 +0100
committerdec05eba <dec05eba@protonmail.com>2024-01-25 23:26:30 +0100
commit2117b8108e89b307cc8c670b78ebd0bee86f704b (patch)
tree1b08fd9f926cb9f60aebc3459329e60fe10c3b8c /src
parentf32cae6b851b43b4d55443593e9bc6a3057c2029 (diff)
Fix build for latest zigHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/main.zig6
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 => {