Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor not locking (not respecting --force-grab-cursor) #1285

Open
HaydenBat opened this issue May 6, 2024 · 13 comments
Open

Cursor not locking (not respecting --force-grab-cursor) #1285

HaydenBat opened this issue May 6, 2024 · 13 comments

Comments

@HaydenBat
Copy link

When using --force-grab-cursor, the cursor is initially grabbed until another window or workspace is interacted with, then the cursor is not locked when back in gamescope. Without the --force-grab-cursor argument, the issue was still present, some games fixing the problem by opening and closing the pause menu, others not.
There is also a window border which was not present beforehand, but probably irrelevant.

  • OS: Arch Linux
  • Kernel: 6.8.9-zen1-1-zen
  • Hyprland latest git
  • Using latest git - aur gamescope-git package
2024-05-06.18-29-07.mp4
@cptn-cosmo
Copy link

cptn-cosmo commented May 6, 2024

I have the same issue still, Final Fantasy XIV basically became unplayable for me since I can't reliable move with mouse only and i keep getting turned around and running the wrong way.

It even used to work correctly without --force-grab-cursor

@HaydenBat
Copy link
Author

I found similar issues here #1181 and here hyprwm/Hyprland#5076 , but these were fixed using --force-grab-cursor which doesn't work.

@misyltoad
Copy link
Collaborator

I don't think this is our bug, it works on every other compositor I tested just fine.

@cptn-cosmo
Copy link

cptn-cosmo commented May 7, 2024

I am using niri on archlinux and it worked fine until the last package update (3.14.3). i have since switched to the -git version and it is still broken for me

@cptn-cosmo
Copy link

output.mp4

Here is an example i recorded, at first just left clicking and the camera moving without input, which happens twice at the start of the video, then i walked around a bit and it happened with both left & right click simultaneously as well at the end of the video. This was working fine in a previous release of gamescope with the same compositor, unfortunately I did not take note of the version that was last working.

@lodriguez
Copy link

lodriguez commented May 10, 2024

Same here on archlinux using plasma6 wayland session.
From version 3.14.3 onwards --force-grab-cursor doesn't work anymore.

@JechtShinryaku
Copy link

Hi
I have the same problem in War Thunder.
I use Arch with Plasma 6, Wayland and dual monitor.

I have managed to find a workaround like a user sugested in ProtonDB.

So I downloaded an older version and downgraded the package with:
pacman -U

So far everything it worksfine, maybe it also works for the version 3.14.2.

@bfalk8
Copy link

bfalk8 commented May 16, 2024

I found similar issues here #1181 and here hyprwm/Hyprland#5076 , but these were fixed using --force-grab-cursor which doesn't work.

I can confirm that since that hyprland issue has closed, any gamescope release past 3.14.3 has broken --force-grab-cursor for me

@HaydenBat
Copy link
Author

Turns out my issue was a Hyprland one. Downgrading to Hyprland 0.39.1 looks to have fixed the issue for me. Sorry for the inconvenience. Looks like others in this issue seem to be having slightly different problems so I'll leave this open for now as theirs still fit the title description, unless anyone wants otherwise.
Thanks for the help.

@The-Briel-Deal
Copy link

Looking into this currently. More info in hyprwm/Hyprland#6159.

@lodriguez
Copy link

lodriguez commented May 25, 2024

Looking into this currently. More info in hyprwm/Hyprland#6159.

It's not only Hyprland, Plasma6 as well. 3.14.2 is the last working Version.

Edit: Looks like it works again for me. Using Lutris with UMU (gamescope 3.14.29).

@tannertechnology
Copy link

tannertechnology commented Jun 28, 2024

Encountering this under X11 running KDE Plasma 6.1.0, did previously work on Plasma 6. Seems to happen when games allow cursor movement like in menus. For War Thunder this is a problem, it never tries to bind the cursor properly on linux, previously gamescope resolved this, now its unusable on linux again :(

Gamescope version 3.14.18-2.git.20240528.420eb91.fc40

@DocMAX
Copy link

DocMAX commented Jan 2, 2025

why isn't there a simple hotkey like SUPER+G available for forced mouse grab beside
"Super + G toggle keyboard grab"
????
I can't understand.
Shall i create a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants