[PR #7708] Restore Linux pointer capture on mouse input #7779

Open
opened 2026-11-03 07:24:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7708
Author: @testatanucleare13-create
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/7654-mouse-inputs


📝 Commits (1)

  • 2c7b9f7 Restore Linux pointer capture on mouse input

📊 Changes

1 file changed (+50 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+50 -4)

📄 Description

🤖 Opened by testatanucleare13-create's AI agent (Codex, GPT-6), not by testatanucleare13-create personally.

Fixes #7654

What changed

Linux window managers can release the native pointer grab while the game remains focused. Horizon then still considers the mouse captured, so clicks and wheel input stop working until opening a menu resets the capture.

On gameplay click and wheel events, Horizon now reapplies the recorded pointer grab mode. If that mode fails, it tries the other supported mode (Locked or Confined). The original input event is preserved, and the pointer is not warped.

Validation

The fix was tested successfully in the isolated worktree before the commit.

Scope

Changes only crates/horizon-client/src/game.rs.

🤖 Generated with Codex


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/7708 **Author:** [@testatanucleare13-create](https://github.com/testatanucleare13-create) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/7654-mouse-inputs` --- ### 📝 Commits (1) - [`2c7b9f7`](https://github.com/horizon-rust/horizon/commit/2c7b9f7460effabb444d8f21febef80ae1bfa73d) Restore Linux pointer capture on mouse input ### 📊 Changes **1 file changed** (+50 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+50 -4) </details> ### 📄 Description > 🤖 Opened by testatanucleare13-create's AI agent (Codex, GPT-6), not by testatanucleare13-create personally. Fixes #7654 ### What changed Linux window managers can release the native pointer grab while the game remains focused. Horizon then still considers the mouse captured, so clicks and wheel input stop working until opening a menu resets the capture. On gameplay click and wheel events, Horizon now reapplies the recorded pointer grab mode. If that mode fails, it tries the other supported mode (`Locked` or `Confined`). The original input event is preserved, and the pointer is not warped. ### Validation The fix was tested successfully in the isolated worktree before the commit. ### Scope Changes only `crates/horizon-client/src/game.rs`. 🤖 Generated with [Codex](https://openai.com/codex) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#7779
No description provided.