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

Mouse isn't captured in Dying Light using Gamescope #114

Open
Valmar33 opened this issue Oct 15, 2020 · 6 comments
Open

Mouse isn't captured in Dying Light using Gamescope #114

Valmar33 opened this issue Oct 15, 2020 · 6 comments
Labels
game compat A bug with a particular game

Comments

@Valmar33
Copy link

When I run Dying Light within Gamescope, the mouse isn't being captured, for some reason.

Running Gamescope master, by the way. Issue doesn't occur when not using Gamescope.

@ghost
Copy link

ghost commented Oct 18, 2020

I have the same issue, gamescope-git 3.7.r1.g667d8af-1 on Plasma Wayland. I tried Dying Light on Linux and Proton 5.0-9/5.13-1, but the mouse was not captured.

The same issue I've seen in Serious Sam Fusion 2017 and I believe it is happening as well with all games that show the Feral launcher.

Operating System: Arch Linux
KDE Plasma Version: 5.20.0
KDE Frameworks Version: 5.75.0
Qt Version: 5.15.1
Kernel Version: 5.9.1-arch1-1

@ghost
Copy link

ghost commented Oct 18, 2020

Interestingly, at least one time my mouse was captured in Dying Light (Linux) after starting it ~15 times.

@emersion
Copy link
Collaborator

emersion commented Nov 9, 2020

Can you check whether 2922d96 helps?

@Valmar33
Copy link
Author

Valmar33 commented Nov 9, 2020

Doesn't help, sorry. :(

@emersion
Copy link
Collaborator

Hm, I can't reproduce with gamescope -e -- steam -tenfoot -steamos. Tried both Dying Light and Serious Sam. How are you starting gamescope?

One way I think I've managed reproducing is force-killing steam (pkill -9 steam) and then running it again. This will display a dialog "Verifying installation", then hide the gamescope window, then open it again with steamos. Steamos won't have the mouse captured when started this way.

Also tried reproducing with this:

gamescope -- sleep 9999 &
export DISPLAY=:1
glxgears
# Kill glxgears, then start it again
glxgears

This hides and re-opens the gamescope window, but the mouse will still be properly captured.

@Valmar33
Copy link
Author

Valmar33 commented Nov 27, 2020

I open Steam, and then run Gamescope via a script that sets up a bunch of environment variables and stuff on a game-by-game basis, and then finally runs

gamescope -w <width> -h <height> -W 1920 -H 1080 -r <fps> -- mangohud <path-to-proton-binary> steam.exe <game-binary>

@emersion emersion added the game compat A bug with a particular game label Jul 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
game compat A bug with a particular game
Projects
None yet
Development

No branches or pull requests

2 participants