How to Fix Mouse Not Being Captured in Games Running with Gamescope on KDE Plasma Wayland?

-

I’m using Endeavour OS with KDE Plasma on Wayland and trying to run games like Ghost of Tsushima and Cyberpunk 2077 through Gamescope to enable HDR. However, my mouse isn’t being confined to the game window and can move to other monitors. I tried the –force-grab-cursor option along with several other launch flags, but mouse capture isn’t working as expected. Interestingly, when I run the games without Gamescope, mouse capture works fine, and I don’t recall having this issue when testing with GNOME on Wayland. My setup includes an Nvidia 3080ti GPU, AMD 5800x3D CPU, and I’m running Proton GE 9-27. Here’s my latest launch command: gamescope -H 1440 -W 3440 -r 240 -f -O DP-1 –adaptive-sync –hdr-enabled –force-grab-cursor –mangoapp — %command%. Any ideas on how to get the mouse properly captured when running Gamescope on KDE Plasma with Wayland?

4 Answers

FrameDropper -

You might want to check out the related GitHub issues on the Gamescope repository. Some users have shared additional fixes and workarounds there that might be helpful for your specific case without downgrading. Keeping an eye on updates could also help since this seems actively worked on.

GlitchMaster77 -

It might help to simplify your gamescope command to just “gamescope –force-grab-cursor — %command%” and then gradually add other options. This way you can pinpoint if any flag is causing the mouse capture problem.

PixelPulse_93X -

I actually tried this simpler command too but unfortunately, I got the same issue where the mouse isn’t locked to the game window.

NaviDreamer -

The issue you’re experiencing is a known problem with Gamescope version 3.16.3-1 where the –force-grab-cursor flag is broken. The best workaround is to downgrade Gamescope to version 3.16.2, which restores proper mouse grabbing behavior.

PixelPulse_93X -

Thanks a lot! Downgrading to 3.16.2 fixed the mouse capture issue for me.

WaylandWanderer -

This is a Wayland-related problem and affects multiple desktop environments including GNOME and KDE Plasma. Since Wayland handles input differently from Xorg, mouse grabbing can be tricky or broken depending on the compositor and the tools like Gamescope. It’s one of the things keeping many from fully switching to Wayland for gaming right now.

Leave A Reply

RECENT PC QUESTIONS

Upgrading to RTX 4060 Ti: Do I Need a New PC?
Wondering if I can upgrade my PC with an RTX 4060 Ti without needing further changes? I'm new to building. View Answer
Is it safe to run my PSU at 96% capacity with a new GPU?
Is it harmful to run my PSU at 96% power usage when gaming with a new GPU in my PC build upgrade? View Answer
Help! Can't Format My Used Hard Drive
What to do if your hard drive won't format and displays error messages in Windows? View Answer
Will a Ryzen 7 5700X 3D and RX 7800 XT Work on My MSI B450 Motherboard?
Can I install a Ryzen 7 5700X 3D and RX 7800 XT on an MSI B450 motherboard for better gaming performance? View Answer
Looking for Advice on Buying My Son's First Gaming Desktop
Looking for tips on buying a gaming desktop for my son with a limited budget of 600€. View Answer
What's the Best Way to Power a 5080 GPU?
Is it safe to power the 5080 with an adapter when I've lost some power supply cables? View Answer

RELATED QUESTIONS

Help! My Games Keep Crashing, Any Ideas on Fixes?
[Baldur's Gate 3] - Why do my games crash on a new GPU after a while? Exploring potential issues with gaming on my Ryzen 5 setup. View Answer
Trouble Playing Minecraft with Shaders on Linux - Any Fixes?
[MineCraft] - Why does Minecraft lag without vsync, even with high FPS, on Fedora with my RTX 2060 setup? View Answer
How can I check if FreeSync is enabled in Wayland?
How can I check if Freesync is enabled and recognized in Wayland on my Arch system? View Answer
How Can I Check If FreeSync Is Enabled with Wayland?
How can I check if Freesync is enabled in Wayland on my Arch system with KDE Plasma? View Answer
How to Get Ultrawide 3440x1440 to Work Natively Without Gamescope?
Can I use my ultrawide 3440x1440 display without gamescope for native gaming on Linux? View Answer
What's the Best Way to Run Stalker Shadow of Chernobyl Enhanced Edition on Linux?
Looking for ways to run Stalker Shadow of Chernobyl Enhanced Edition on Linux desktop? Here's how! View Answer
Is There a Way to Access PC Game Pass on Linux Without Upgrading?
Is there a way to use PC Game Pass on Linux without upgrading to Ultimate while dual-booting with Windows? View Answer
How to Improve PCSX2 Performance on Wayland?
Can I fix PCSX2 performance on Wayland, or should I switch to X11 for better gameplay? View Answer
Where to find updates on Wayland and nVidia issues?
[The Waylanders] - Where can I find the latest Wayland and nVidia update news for better Linux gaming support? View Answer
Help! My Controller Isn't Working with Dark Souls 2
How to fix controller detection issues in Dark Souls 2 on Steam for Linux users with 8bitdo controllers. View Answer
How can I run MapleStory Worlds on Linux?
[MapleStory Worlds] - Can MapleStory Worlds be run on Linux, and how can NGM be made to work with it? View Answer
Need Help Running Guild Wars 2 on Linux Mint
[Guild Wars 2] - Need help launching Guild Wars 2 on Linux Mint after switching from Windows? Seeking guidance for setup! View Answer