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 }); },