-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 unusable in game's menus on a multi-monitor setup when running games with Proton fshack #6422
Comments
I got the same issue in overwatch with bspwm. |
That's interesting, since that runs on X11, so the issue is probably not within XWayland. But it's an annoying bug, since it makes playing any game at all pretty difficult. I've tested more steam games and the mouse seems to be completely unusable in the menus of all games tested. Gnome does not have this issue. As a workaround I've decided to put Manjaro Gnome on dual boot and play all my games there. I have not tested KDE. |
For me the issue was because it was using the primary monitor for actual mouse input but I wasn't running the game on the primary. Basically, overwatch is doing something weird that wine doesn't account for. |
I'm having the same issue on two single monitor setups -- my main PC and my laptop. I've tested this only with Final Fantasy XIV online, but it seems that the issue is present whether I use fullscreen (no virtual desktop) with wine-fshack or proton-ge via lutris. Gnome Wayland (gnome-shell --wayland) seems to work fine with both. |
It seems that the latest master version of sway fixes the issues:
I'm able to run fullscreen FFXIV with proton-ge an wine-fshack. |
I've tested with the master branch as well;
Horizon Zero Dawn - Proton-GE-6.16 Unfortunately, the issue is still there for me. Unable to use the mouse in the menu's. |
Still having the same issue. Did you manage to get it working? |
This issue is revolved by setting a primary monitor for XWayland. You can do so by running This is not an issue Sway can resolve in particular, as Wayland does not work with the concept of a primary output, and thus cannot provide that information. A lot of X11 apps do expect a primary monitor to exist however, so especially games running on XWayland tend to behave much better with it set. |
For whatever reason my xwayland refuses to set a primary monitor.
Worked around the issue by running steam inside of cage inside of sway (the command is simply |
Genshin Impact wasn't too happy running in cage, so I had to figure out something else. I used to have 3 monitor setup, left to right, with the rightmost one being primary. Later I disconnected the leftmost monitor, but didn't modify the config. So my new leftmost monitor had |
Yes. Following your steps I was able to fix the same problem. Thank you very much! Just to add and make it easier to replicate for anyone else trying to solve the same problem.
Restart sway and only start your games/applications with mouse constraint on the "primary" monitor. If you start anything on the "secondary" it will present the same problems as before. Example copy/paste from my sway/config
|
@Pobre If you start it on the "primary" monitor but move it to the secondary monitor, does it still work? Or do you always have to have the window in the "primary" monitor? |
Stuff ran through wine would not accept mouse input when sway has inactive monitors configured. swaywm/sway#4857 swaywm/sway#6422 (comment)
Sway version 1.6.1
https://gist.github.com/RicArch97/7ff13a92adf718b26fd6af7d773cb1ac
The issue was reproduced with the default config.
My own configuration files can be found here
Proton has a patch called "fshack". Which allows resolution changes for fullscreen games without changing desktop resolution, including a raw input patch that only works with fshack, that makes games much more playable.
I've tested this with 2 games:
lutris-fshack-6.14
andlutris-ge-6.14-2
proton-6.14-GE-2
I believe Proton has this patch enabled by default, in lutris it is optional.
The problem is that the mouse is not usable in the menus of both games. The mouse pointer changes into the game's pointer, and moves around just fine, but entries cannot be clicked. In a lot of games this is a problem because the mouse is necessary to play the game. When using the keyboard to enter a training range, the mouse does work for aiming and shooting correctly.
When testing this on just a single monitor, everything seemed to work fine. With a 2 monitor setup (even with default config) the problem occurs. That's only when running the game on monitor 2. On monitor 1 the mouse works just fine.
My monitors are set up like so:
When using scaling on monitor 1 however (1.5), the mouse was "working" in the far right section of monitor 2, when moving the mouse around in the far left section of monitor 2.
My guess is that the mouse pointer somehow operates on the area of monitor 1 (3840x2160) while the game is running on monitor 2. And with scaling monitor 1, is overlapping into monitor 2. and because monitor 2 is starting at 2560, I was able to move the mouse in the far left side of monitor 2 and get a reaction on the far right side of the monitor 2.
I believe this to be a Sway issue as I was was not able to reproduce this issue on Gnome on the exact same setup.
The text was updated successfully, but these errors were encountered: