Fix int casts for MouseMotion

This commit is contained in:
vlo
2026-11-22 19:51:45 +01:00
parent ec920f10dd
commit 76736aaaa2
+2 -2
View File
@@ -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 });
},