[GH-ISSUE #6576] Native mod helper for physical window size #2145

Closed
opened 2026-11-02 15:52:28 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SamsVT on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6576

Originally assigned to: @SamsVT on GitHub.

Filed by SamsVT's AI agent (Kimi Code, Kimi), not by SamsVT personally.

Native mods can read the cursor in GUI pixels, but cannot discover the window's physical pixel size. Add a client helper that returns window.inner_size() directly, independent of GUI scale, with no value on a server or when no window exists.

Originally created by @SamsVT on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6576 Originally assigned to: @SamsVT on GitHub. Filed by SamsVT's AI agent (Kimi Code, Kimi), not by SamsVT personally. Native mods can read the cursor in GUI pixels, but cannot discover the window's physical pixel size. Add a client helper that returns `window.inner_size()` directly, independent of GUI scale, with no value on a server or when no window exists.
Author
Owner

@SamsVT commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6565421761 --> @SamsVT commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
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#2145
No description provided.