Wine / Proton games lose mouse when using any sort of scaling in desktop

I’m running Fedora Workstation 40 and Gnome 46 currently but I noticed the same issue when I tried 41 early as well with Gnome 47. Both using Wayland. Using a 7800X3D and a 7900 XTX.

I’ve been gaming on a 4K OLED TV with a 1440p monitor to my right. I usually have my scaling set to 200% for the 4K TV with 100% on the 1440p monitor. Whenever I’m playing a Wine/Proton game using the mouse, once I go about halfway to the right on the TV with the cursor, the game loses the mouse and it goes to my 1440p monitor on the right instead. I can then go back to the left from my monitor back to the TV, but the cursor seems to instantly appear at about the halfway point on the TV as if the scaling makes it so the mouse can only be used on half of the TV before it moves to the monitor on the right.

I have to close the game and change my scaling in Gnome for the 4K TV back to 100% so I don’t get this issue any more. I’m not sure if Gamescope could help as I haven’t tried, but I’d rather not always have to use it to work around this issue. Is this a known bug? Is there a way to fix this?

Edit: I just tested it again, and for the first time the issue happened even when I set scaling back to 100%, so now I’m not really sure what the problem is.

I’m seeing what I think is probably the same issue or at least one that’s very similar.

I’ve got two 4k monitors. I’m also running Gnome under Wayland on Fedora (41). When I have any monitor at any scale other than 100% the mouse doesn’t seem to be properly grabbed by the game.

Did you ever find a solution to your issue or have you found any upstream bug reports that seem related?

I also have this issue. Same situation: two 4k monitors set to 200% scale, on Fedora 41. I’ve had the issue off and on with some games even in Fedora 40 for several months.

I just tried to play Final Fantasy 14 for the first time since updating to Fedora 41 (amd, gnome, wayland) and the game is basically unplayable due to it failing to hold onto the cursor. Strangely enough, the cursor grab was working fine on Fedora 40 (amd, gnome, wayland) for FF14 before I upgraded.