From 76736aaaa2e8b5441421d68950eab215592ffaf1 Mon Sep 17 00:00:00 2001 From: vlo Date: Sun, 22 Nov 2026 19:51:45 +0100 Subject: [PATCH] Fix int casts for MouseMotion --- src/Window.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Window.zig b/src/Window.zig index 24cf763..74ba710 100644 --- a/src/Window.zig +++ b/src/Window.zig @@ -251,8 +251,8 @@ pub fn pollEvent(self: *Self) ?Event { }, xlib.MotionNotify => { return .{ .mouse_motion = .{ - .x = e.xmotion.x, - .y = e.xmotion.y, + .x = @intCast(e.xmotion.x), + .y = @intCast(e.xmotion.y), } }; //std.debug.print("Motion : {d} {d}\n", .{ e.xmotion.x, e.xmotion.y }); },