-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Games can't seem to keep mouse focus #1147
Comments
This sounds like a prime candidate for the |
Wew, that took a moment to figure out. I'm yet to test how well this works in games yet, but I did come up with a solution using CursorBarrier (alt+tab toggles a CursorBarrier on my primary monitor).
Out of curiosity, does anyone know why this bug happens in the first place? I have a feeling there might be some side effects to how well mouse input is received from just locking the mouse to bounds, vs actually having the window properly focus and lock the mouse as is intended. I play a lot of games that are sensitive to mouse input problems (fast-paced competitive quake for example) and would love a real fix. This is hopefully a workaround for now though. |
Possible useful discovery. I'm using 'DesktopConfiguration per-monitor' and the issue only happens have after switched to a different page and back. Upon starting games, everything seems fine from what I can tell, but as soon as I switch page and back to the game, the mouse stops focusing/locking to the game and leaves the screen, so it seems directly related to changing page on the monitor that the game is on (though if I just tab out to another monitor and keep the games monitor on the same page, the issue doesn't seem to happen?), the above solution seems like an okish workaround for now. Edit; Not as useful as I thought. CursorBarrier fails when I pause the game and my mouse is warped to the left of my left monitor, which then means my mouse is stuck outside of my primary monitor by the barrier. I have to destroy the barrier, move my mouse back to the main monitor, and create the barrier again. If there was a way to make the barrier always keep the mouse within its bounds (like min/max the mouse coordinates to the bounds) then it would work, but looking at the PR that added CursorBarrier I can't see a way to do that. |
System info:
arch
NsCDE
fvwm3 1.1.1 (released)
with support for: XPM, PNG, SVG, Shape, XShm, SM, Bidi text, XRandR, XRender, XCursor, XFT, XFixes, NLS
I have 3 monitors setup, and when I try to play a game (Using 'The finals' as an test-case playing via steam/proton), the mouse refuses to stay within the bounds of the game window, regardless of fullscreen/windowed etc. This issue only seems to happen on fvwm3. I've also got bspwm running and the issue doesn't exist there. I've got the xprop output for the window from both fvwm3 and bspwm to compare.
This makes gaming pretty much impossible, so currently I just switch to bspwm to play games, but it's annoying and I'd prefer to stick with fvwm3 & nscde. If it's something obvious within the xprop output then at least I can make a script/keybind to change whatever that is for the current active window and workaround my issue, but nothing jumps out to me here:
fvwm3 xprop output (I've omitted the icon)
bspwm xprop output (this one works great)
The text was updated successfully, but these errors were encountered: