Language

Create Cursor Fix

Create Cursor Fix

Modrinth

Fixes a gui rendering bug with Create on some linux distros. Guis may not reflect the true physical cursor position when opened.

367 downloads 3 followers updated 1mo ago
latest v1.0.0 Modrinth
Neoforge 1.21.1 – 1.21.1 Utility

Create Cursor Fix

Small client-side NeoForge mod for Minecraft 1.21.1 that fixes stale cursor
coordinates in Create value settings screens.

This issue shows up in any gui that is an instance of ValueSettingsScreen including Rotation Speed Controllers and Creative motors.

I do not intend to support other versions unless asked, but its pretty easy to port, so feel free to do so or request a particular version.

Requirements

  • Minecraft 1.21.1
  • NeoForge 21.1.219 or newer
  • Create 6.0.9 or newer

What It Fixes

Create's value settings UI receives mouse coordinates from Minecraft's normal
screen rendering path. On some Linux setups, those coordinates can be stale
after Create programmatically moves the cursor.

This mod patches Create's value settings screen to read the current GLFW cursor
position directly when rendering and saving the panel.

Wayland Support

Wayland is not explicitly supported.

This mod can fix the stale-coordinate case when cursor repositioning already
works. That usually means x11 or xwayland, but I haven't been able to reliably prove this fixes anything outside of x11. Im a new modder, apologies.

Native Wayland seems to sometimes fail earlier than that. GLFW only supports
glfwSetCursorPos on Wayland while the cursor is disabled. Minecraft GUI
screens normally use a visible, enabled cursor, so a Wayland compositor may
refuse Create's attempt to move the cursor in the first place.

In that case there is no moved cursor position for this mod to read:

Create asks GLFW to move/snap the cursor
The Wayland compositor refuses or ignores that cursor move
The visible cursor never moves to the saved setting
This mod cannot infer the intended cursor position from GLFW

If the cursor does not visibly move to the saved value when opening the Create
panel, that setup is probably outside this mod's support boundary.

Versions

Release
1.0.0
neoforge · 1.21.1 · 1mo ago
release version 1.0.0. compat with Create 6.0.9+
367

Comments 0

No comments yet. Be the first to share your thoughts.

Download Create Cursor Fix

Files are served directly from the original source. Modgrid does not host or modify them.