Bug 484835 - Proton games do not lock onto game window on a multi-monitor setup since 6.0.x
Summary: Proton games do not lock onto game window on a multi-monitor setup since 6.0.x
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 6.0.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
Depends on:
Reported: 2024-03-31 20:05 UTC by Ashcon Mohseninia
Modified: 2024-05-31 14:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:

Demo showing the bug (2.02 MB, video/mp4)
2024-03-31 20:05 UTC, Ashcon Mohseninia

Note You need to log in before you can comment on or make changes to this bug.
Description Ashcon Mohseninia 2024-03-31 20:05:44 UTC
Created attachment 167998 [details]
Demo showing the bug

When playing a game on a multi-monitor setup, the mouse can escape the main monitor (Where the game is being played), but is teleported back to the window fairly quickly.

The issue is that when it is outside the window, clicking (IE: Firing a weapon), instead causes the focus of the game to be lost, and the other monitors become the focus.

What is interesting, is since 6.0.3, the game still looks around as if the mouse is still present in the game window. Pre 6.0.3, the mouse would move outside the window and the game would stop looking around.

1. Play a proton Game on any version of plasma 6.0.x on a multi-monitor setup
2. Try to look around
3. Notice that the mouse is escaping the main game window.

I've attached a video here to show the bug in action

Linux/KDE Plasma: Arch Linux
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.7.0

Comment 1 Adel KARA SLIMANE 2024-05-31 14:29:01 UTC

I am experiencing this exact same issue.

- Overwatch 2: issue happens in both Borderless Windowed and Fullscreen mode
- Wayland platform
- KDE Plasma 6.0.5
- KDE Frameworks 6.2.0
- Qt Version 6.7.1
- Archlinux with kernel 6.9.2-zen1-1-zen 
- dGPU RX 7900 XTX 
  - Monitor 1: QHD@270Hz DP connection, landscape, VRR enabled
  - Monitor 2: QHD@144Hz HDMI connection, portrait, VRR disabled
  - Global zoom 125%
- CPU + iGPU 7800X3D