ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.03k stars 199 forks source link

Battlefield 5 does not trap mouse cursor #125

Open valters-tomsons opened 3 years ago

valters-tomsons commented 3 years ago

Hi!

I am launching Battlefield 5 through steam with nested gamescope and it does not seem to trap the mouse cursor in neither i3 or sway.

By that I mean I can drag the cursor to second monitor and out of the game window at which time game stops receiving keyboard input. (Two monitors, game on left)

Running glxgears does seem to trap mouse correctly.

System Information Computer Information: Manufacturer: Unknown Model: Unknown Form Factor: Desktop No Touch Input Detected Processor Information: CPU Vendor: AuthenticAMD CPU Brand: AMD FX(tm)-8300 Eight-Core Processor CPU Family: 0x15 CPU Model: 0x2 CPU Stepping: 0x0 CPU Type: 0x0 Speed: 4396 Mhz 8 logical processors 8 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Supported SSE41: Supported SSE42: Supported AES: Supported AVX: Supported AVX2: Unsupported AVX512F: Unsupported AVX512PF: Unsupported AVX512ER: Unsupported AVX512CD: Unsupported AVX512VNNI: Unsupported SHA: Unsupported CMPXCHG16B: Supported LAHF/SAHF: Supported PrefetchW: Unsupported Operating System Version: "Arch Linux" (64 bit) Kernel Name: Linux Kernel Version: 5.9.4-zen1-1-zen X Server Vendor: The X.Org Foundation X Server Release: 12009000 X Window Manager: wlroots wm Steam Runtime Version: steam-runtime_0.20201104.0 Video Card: Driver: AMD Radeon RX 590 Series (POLARIS10, DRM 3.39.0, 5.9.4-zen1-1-zen, LLVM 12.0.0) Driver Version: 4.6 (Compatibility Profile) Mesa 20.3.0-devel (git-a0b42da0a2) OpenGL Version: 4.6 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 143 Hz VendorID: 0x1002 DeviceID: 0x67df Revision Not Detected Number of Monitors: 2 Number of Logical Video Cards: 1 Primary Display Resolution: 1920 x 1080 Desktop Resolution: 3840 x 1080 Primary Display Size: 20.87" x 11.81" (23.98" diag) 53.0cm x 30.0cm (60.9cm diag) Primary VRAM: 8192 MB Sound card: Audio device: Realtek ALC1150 Memory: RAM: 16038 Mb VR Hardware: VR Headset: None detected Miscellaneous: UI Language: English LANG: en_US.UTF-8 Total Hard Disk Space Available: 112162 Mb Largest Free Hard Disk Block: 9118 Mb The runtime information tool is preparing a report, please wait...
emersion commented 3 years ago

Can you check whether https://github.com/Plagman/gamescope/commit/2922d963080bf99bad30afcfa2ff2f05dca6281d helps?

valters-tomsons commented 3 years ago

Nope, does not seem to have made any difference.

emersion commented 3 years ago

Maybe related to https://github.com/Plagman/gamescope/issues/114