Repository navigation
Cursor isn't locked to the window with fullscreen Steam games (or other apps) on multi-monitor system #16249
Replies: 4 comments 4 replies
|
So far solving it by disabling other 2 monitors on game start https://gist.github.com/asmyshlyaev177/3204e4bf33a5b329afb11d4cf6ee2ae3 |
|
I have this issue too. It seems as if I have this issue on Counter-Strike 2 running using XWayland. My mouse isn't fully locked to the cs2 window, and when i flick quickly, especially while holding CTRL or SHIFT, it seems to lose focus, as the pointer leaves the window and goes to my second monitor. Could the OP make an issue? |
|
You can fix the issue by making a window_rule and setting "confine_pointer" to true. However. Notifications and OSDs will cause the cursor to lose focus of the game and go over to the second monitor. This seems to be a regression as it didn't happen on earlier versions of Hyprland. |
|
I have the same issue, latest version of hyprland (v0.57.2 on CachyOS with Noctalia shell (v5), 3 monitors (1 main 2k and the others 1080p, same scaling of 1, but different refresh rates and orientations). Ideally this should not happen unless a specific keybind or action takes focus from the game. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hyprland version
0.56.2
Is this a regression?
Don't know
What's the bug?
When launching a Steam game in fullscreen mouse cursor isn't locked inside the window, can move it to other monitor.
Tried few tricks from Google and AI, without any success. Fresh installation of Omarchy linux, on latest update.
Things I've tried:
cursor:no_hardware_cursors= true, and theautodefaultmisc:mouse_move_focuses_monitor= falsegamescope -f --force-grab-cursor -- %command%gamescope -f -W 1600 -H 900 -w 1920 -h 1080 --force-grab-cursorHKCU\Software\Wine\X11 Driver\GrabFullscreen = YDefaultViewportMouseLockMode=LockAlwaysin the game's Input.iniReproduction steps
Need at least 2 monitors.
brave --new-window https://mdn.github.io/dom-examples/pointer-lock/ or better any real Steam game in fullscreen
Observed: the cursor is not pinned. It keeps moving, leaves the surface and
crosses onto other monitors. The compositor sends unlocked() 50-700ms after
locked(), with no wl_pointer.leave / wl_keyboard.leave in between.
Expected: while locked, the cursor does not move, and the constraint stays
active until the client destroys it or the surface loses focus.
Attachments
No response
I acknowledge that:
I have searched all (open and closed) discussions and issues and my problem is not there.
I have read the Code of Conduct and agree to follow it.
I wrote this request with my own hands, my own keyboard, and in my own words.
All reactions