Skip to content

Mouse arrow visible ingame #979

Closed
Closed

Description

@Abendlied

Describe the bug
Mouse arrow visible ingame. In Gothic 1 and Gothic 2. Game runs in full screen. Mouse arrow not free to move, slightly wiggles on movement but keeps more or less centered, indicating the window caught the mouse.
Happens directly after startup, no alt-tabbing.

Save-game/Log-file/Screenshots/Video
Neither my screenshot nor my video program capture the mouse arrow, they just filter it out. For me though it is visible the whole time.
The video at least shows it is there in the beginning before not recording it anymore. The mouse arrow is persistent and always visible for me though.
video (mouse visible in the beginning): , 2 sec, 185 KiB: (https://github.com/user-attachments/assets/f1d5333e-00c8-4821-8408-a94194adc44e)
"old people screenshot" using my phone: Image

System Description
Fresh manual build from master, today. Linux machine. Two monitors but only one used and the other inactive.

Activity

  1. Abendlied commented on Aug 31, 2026

    @Abendlied
    ContributorAuthor

    I have the suspicion it is a bug on my end rather than OpenGothic engine. I am running XFCE on X11 + NVIDIA GTX 1050 pascal generation GPU, which gives me a handfull of rabbit holes to explore now.

    The mouse arrow/cursor stays on the screen on a compositor-level overlay that the actual games (and therefore screen-recorders such as screenshot and OBS tool) never see. It basically is not a part of any window based rendered buffer.

    Neither the OpenGothic attempt to hide the cursor nor me disabling the hardware cursor plane seems to stick on my machine. Something seems to be calling "show cursor" for me, I will investigate further.

  2. Abendlied commented on Sep 3, 2026

    @Abendlied
    ContributorAuthor

    I tried switching to wayland (XWayland) but gave up quickly as it is not natively supported at all. So back on X11, the mouse cursor always remained visible ingame when OpenGothic started. I think this is because the initial setCursorShape(CursorShape::Hidden) call in common/mainwindow.cpp does not update the (system native) cursor until a mouse moving event is triggered.
    This can be adressed in lib/Tempest/Engine/system/api/x11api.cpp.

  3. Abendlied commented on Sep 3, 2026

    @Abendlied
    ContributorAuthor

    Pull Requests opened: #980 and Try/Tempest#98

    Tempest PR: Try/Tempest#100
    OpenGothic PR: #980

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions