Skip to content

[BUG] - Mouse Cursor Is Not Unlocked From Window On Exit From Fullscreen on Wayland #937

Open

Description

@ChristianSilvermoon

Describe the issue

When exiting full screen in any manner, the mouse cursor is not unlocked from the window.

The issue does not occur in fb87fad (v1.3.7 release)

A type of bug

Native bug

Does this issue happens always or randomly?

Always happens

Version

v1.3.8-dev

Version Hash

09815dd

Platform

Linux

Processor architecture

x86_64 / x64 (64-bit x86)

Log file (if presented)

thextech.log

Example Case

Occurs on title screen.

Recording

No response

Vanilla Recording

No response

Additional context

OS: Nobara Linux 41 (KDE Plasma)
ID-Like: RHEL, CentOS, Fedora
Graphics Platform: Wayland (kwin)

Built with:

cd build
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_LOGGING=OFF -DUSE_SYSTEM_SDL2=ON -DUSE_SYSTEM_LIBS=OFF -DUSE_STATIC_LIBC=ON -DPGE_SHARED_SDLMIXER=OFF -DPGE_VIDEO_REC_PREFER_GIF=OFF -G Ninja ..
ninja

Activity

  1. added
    NEW-BUG
    on Apr 2, 2025
  2. ds-sloth commented on Apr 2, 2025

    @ds-sloth
    Collaborator

    I can't reproduce this locally. Does this issue occur when you build fb87fad yourself with the same build flags? Thanks!

  3. added
    native bug
    need an analys
    and removed
    NEW-BUG
    on Apr 2, 2025
  4. ChristianSilvermoon commented on Apr 2, 2025

    @ChristianSilvermoon
    Author

    I can't reproduce this locally. Does this issue occur when you build fb87fad yourself with the same build flags? Thanks!

    I can confirm that it does actually occur in this situation 🤔

    ...is it possible that it's my system's SDL Libraries?

  5. ds-sloth commented on Apr 3, 2025

    @ds-sloth
    Collaborator

    It's very possible that it has to do with SDL and Wayland. Does the issue persist if you launch the game with SDL_VIDEODRIVER=x11?

  6. ChristianSilvermoon commented on Apr 4, 2025

    @ChristianSilvermoon
    Author

    It's very possible that it has to do with SDL and Wayland. Does the issue persist if you launch the game with SDL_VIDEODRIVER=x11?

    It does not, actually, instead instead it works as expected.

  7. changed the title [-][BUG] - Mouse Cursor Is Not Unlocked From Window On Exit From Fullscreen[/-] [+][BUG] - Mouse Cursor Is Not Unlocked From Window On Exit From Fullscreen on Wayland[/+] on Apr 4, 2025
  8. added theissue type on Apr 19, 2025
  9. Wohlstand commented on Jul 8, 2025

    @Wohlstand
    Member

    Sounds like another bug of the SDL2. By the way. Try to build it from the source using system-wide SDL2 version and see what happens?

  10. ChristianSilvermoon commented on Jul 9, 2025

    @ChristianSilvermoon
    Author

    Sounds like another bug of the SDL2. By the way. Try to build it from the source using system-wide SDL2 version and see what happens?

    It seems to occur regardless of whether I build with -DUSE_SYSTEM_SDL2=ON or -DUSE_SYSTEM_SDL2=OFF

  11. added a commit that references this issue on Oct 7, 2026
  12. added a commit that references this issue on Oct 19, 2026
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

    native bugneed an analys

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions