Counter-Strike 2 mouse capture problems on Wayland can make the game feel unplayable. The cursor may escape the window, aiming may stop at the edge of the screen, clicks may land outside the game, or sensitivity may feel inconsistent after alt-tabbing. These issues usually come from the interaction between CS2, Steam, Gamescope, your Wayland compositor, overlays, and pointer-lock behavior.
This guide gives you a clean troubleshooting path. Fix mouse capture first, then worry about performance tuning, scaling, frame caps, or visual tweaks.
Quick Fix Order
- Remove old CS2 launch options.
- Disable overlays and recording tools.
- Test CS2 normally under Wayland.
- Test a minimal Gamescope command with cursor grab and relative mouse mode.
- Keep fullscreen or borderless settings consistent while testing.
- Restart the game after changing display settings.
- Test a full X11 session if Wayland remains unreliable.
- Update Gamescope, Steam, compositor, and graphics drivers if needed.
What Mouse Capture Means
Mouse capture is the game’s ability to keep pointer movement inside the game and translate mouse motion into camera movement. In a competitive shooter, this must be reliable. If the desktop compositor lets the pointer escape or fails to send relative mouse movement correctly, your aim can break even though the game is still running.
On Linux, this can be more complicated under Wayland because pointer locking and relative mouse input depend on compositor support and how the game is launched.
Start With a Clean Test
Before adding Gamescope flags, performance overlays, scaling, custom resolutions, or launch scripts, test CS2 in the simplest setup you can. Disable extra overlays, remove old launch options, restart Steam, and launch the game normally.
Confirm whether the problem happens immediately, only after alt-tabbing, only on a second monitor, or only after changing resolution. That detail tells you where to focus.
Use Gamescope to Isolate CS2
Gamescope can run CS2 inside a nested compositor session, which may make input and window behavior more predictable. Start with a minimal command. Do not stack scaling, HDR, frame pacing, or performance flags until input is stable.
gamescope --force-grab-cursor --relative-mouse-mode -- %command%
The exact flags supported can depend on your Gamescope version and distribution packages. If a flag is not recognized, check your local Gamescope help output and adjust the command rather than copying random options from old posts.
Why Relative Mouse Mode Matters
Competitive shooters need relative mouse movement. The game should receive movement deltas rather than relying on the visible pointer position. If relative input fails, aiming can stop when the desktop cursor reaches the screen edge.
For CS2, the goal is continuous camera control no matter where the desktop pointer would have been. That is why relative mouse behavior and cursor grabbing are the first things to test.
Disable Overlays While Troubleshooting
Overlays can interfere with focus and input capture. During troubleshooting, disable Steam Overlay, Discord Overlay, MangoHud, recording overlays, FPS counters, desktop effects, and any tool that injects itself into the game window.
Once mouse capture is stable, re-enable one overlay at a time. If the problem returns, you have found the conflict.
Fullscreen and Resolution Testing
Mouse capture can break when CS2, Gamescope, and the desktop disagree about window state. Use one consistent display mode while testing. Avoid rapidly switching between windowed, borderless, and fullscreen. Also avoid changing resolution during the same session until the capture problem is solved.
| Symptom | Test |
|---|---|
| Cursor escapes the game | Try Gamescope cursor grab and relative mouse mode |
| Aim breaks after alt-tab | Test without overlays and restart after focus changes |
| Issue only on multi-monitor setup | Test with one active display |
| Fullscreen behaves badly | Test borderless inside Gamescope |
| Borderless behaves badly | Test fullscreen inside Gamescope |
Alt-Tab and Focus Problems
Many capture issues appear after alt-tabbing. If CS2 works at launch but breaks after focus changes, the compositor or overlay stack may not be returning pointer lock correctly. Try opening and closing the Steam overlay, switching workspaces back and forth, or restarting the game after changing settings.
For competitive matches, the practical answer may be to avoid alt-tabbing once the game is running. That is not elegant, but it is better than discovering the issue mid-round.
Test an X11 Session
If Wayland remains unreliable, test CS2 from a full X11 session. This is a useful diagnostic step. If mouse capture works perfectly on X11, the issue is likely tied to your Wayland compositor, Gamescope version, or input portal behavior rather than CS2 alone.
If X11 fixes the issue and you mainly play competitive shooters, it may be worth using X11 for those games until your Wayland stack improves.
Keep the Linux Gaming Stack Updated
Wayland gaming support changes quickly. Keep Gamescope, Steam, your compositor, Mesa or NVIDIA drivers, and system packages updated through your distribution. Old Gamescope builds may lack input fixes, while older compositor versions may handle pointer locking less reliably.
Avoid updating right before a ranked session. Test after major driver or compositor updates before assuming everything still works.
Frequently Asked Questions
Why does my cursor escape the CS2 window on Wayland?
The game or compositor is not confining the pointer correctly, or relative mouse input is not being passed to the game reliably.
Should I use Gamescope for CS2?
Gamescope is worth testing if CS2 has mouse capture or focus issues under Wayland. Start with a minimal command before adding scaling or performance options.
Should I disable the Steam Overlay?
Disable it while troubleshooting. If mouse capture becomes stable, re-enable overlays one at a time to find conflicts.
Is X11 better than Wayland for CS2?
Not always, but X11 is a useful fallback if your Wayland compositor has unreliable pointer locking for competitive shooters.
Why does the problem happen after alt-tabbing?
Alt-tabbing changes window focus. Some compositor and overlay combinations fail to restore pointer lock correctly after focus returns to the game.

