Skip to content

Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.

Windows: the grab warps the pointer once, and the capture probe passes

Alexander Krylovb72f0b52f89f
diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs
index a5aa444ef..a4a5b68cc 100644
--- a/crates/horizon-client/src/game.rs
+++ b/crates/horizon-client/src/game.rs
@@ -7783,7 +7783,8 @@ impl Game<'_> {
.set_cursor_grab(CursorGrabMode::Locked)
.or_else(|_| window.set_cursor_grab(CursorGrabMode::Confined))
.is_ok();
- #[cfg(not(target_os = "macos"))]
+ // Windows already warped above, inside the clip's own position.
+ #[cfg(not(any(target_os = "macos", target_os = "windows")))]
if self.captured && self.focused {
warp(window);
}