Skip to content

Gui Curser Doesn't work on wayland #120

@I-No-oNe

Description

@I-No-oNe

Hey!
A little bit weird to write an issue to a project that im working on solving or making the bugs on it

I'm using Fedora KDE (yes, Linux) on the latest commit for CC and whenever I'm trying to use GUI Cursor > cursor-action > HOVER_TOTEM the mouse doesn't move to the totem

Steps to reproduce:

  1. Enable GUI Cursor module
  2. Set cursor action to HOVER_TOTEM
  3. Open the inventory with a totem in it
  4. Mouse doesn't move/select the totem

Expected behavior:
Mouse should automatically move to the totem slot while HOVER_TOTEM is active

Possible cause:
This is likely a Wayland compatibility issue. The module uses GLFW.glfwSetCursorPos() in setCursor() to programmatically move the mouse - this is a known limitation on Wayland, where glfwSetCursorPos is only guaranteed to work if the cursor is in disabled/captured mode (e.g. in-game with locked cursor). When the inventory is open the cursor is in normal mode, and Wayland's security model explicitly blocks applications from repositioning it, causing the call to silently fail. This works fine on X11 and Windows where no such restriction exists.

Environment:

  • OS: Fedora KDE (Linux) — Wayland session
  • ClickCrystals version: latest commit — bdafa34

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions