Skip to content

Cursor turns invisible when using "--force-grab-cursor" #2180

Description

@AlaricDelany

Is there an existing issue for this?

  • I have searched the existing issues

Are you using any gamescope patches or a forked version of gamescope?

  • The issue occurs on upstream gamescope without any modifications

Current Behavior

Earlier i updated my Nvidia Drivers and then my Ubuntu from 25 to LTS 26.04 after the restart i noticed cursor issues in the games i start using gamescope (the same games work fine without)
When a game starts i have my cursor as expected, but as soon as i use Left Click, my visible Cursor freezes and i have an invisible cursor my mouse controls.

I was testing with FF14 and Overwatch.
My default command was:
gamescope -w 3840 -h 2160 -W 3840 -H 2160 -r 60 -o 30 -s 2.7 --force-grab-cursor --backend sdl -- env LD_PRELOAD="$LD_PRELOAD" %command%

i thought maybe its the Backend, so i tried with wayland and without any explicit backend, no change.
I thought maybe its the cursor speed, but without the -s things stayed the same.
i realized when i switch the game to BorderlessWindowMode instead of Fullscreen, i sometimes get my cursor back, but its not consistent enough to work as Workaround.
I also thought maybe its my mouse, but both Mice i tried had the same result. (Tested with: Logitech Ergo MX and Razer Naga Pro)

I saw the issue with SteamInputs, but since i am not using any controller, nor have i one registered in Steam (i checked the Controller settings in Steam, no controller is listed), i assume its a different issue.
Especially since this only happens when i add "--force-grab-cursor" without everything works fine

Steps To Reproduce

  1. Set a Game (in this case i tested mostly with Overwatch) to use Gamescope usinggamescope -W 3840 -H 2160 -r 60 -- env LD_PRELOAD="$LD_PRELOAD" %command%
  2. Click around in the game and confirm everything works as intended
  3. Close the game and add the "--force-grab-cursor" parameter so we have gamescope -W 3840 -H 2160 -r 60 --force-grab-cursor -- env LD_PRELOAD="$LD_PRELOAD" %command%
  4. Start the game again and after the first click your Cursor turns invisible

Hardware information

- Distro: Ubuntu 26.04 LTS (no updates or upgrades available)
- CPU: Intel® Core™ i9-10900K × 20
- GPU: NVIDIA GeForce RTX™ 3090
- Driver Version: 580.142

Software information

- Desktop environment: GNOME 50
- Session type: wayland
- Gamescope version: 3.16.20+ds-1 (gcc 15.2.0)
- Gamescope launch command(s): 
gamescope -W 3840 -H 2160 -r 60 --force-grab-cursor -- env LD_PRELOAD="$LD_PRELOAD" %command%

Which gamescope backends have the issue you are reporting?

  • Wayland (default for nested gamescope)
  • DRM (default for embedded gamescope, i.e. gamescope-session)
  • SDL
  • OpenVR

Logging, screenshots, or anything else

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions