Hlawka’s theorem in the geometry of numbers