[Linux] alt-tabbing out of game locks mouse in center of the screen
When in a game, either playing or watching, alt-tab-ing out locks the mouse to the center of the screen. This is reproducible every single time. However if in a game I push esc and bring up a menu first then alt-tabbing out works fine.
Using the newest KDE, 6 virtual desktops and desktop effects disabled.
Also once when I alt tabbed back in I lost all control of the game, there was no overlays of any kind (hud, icons, etc) and no keypress would do anything. I ended up just closing it. This has happened in windows before albeit to a much smaller degree.
Processor Information: Vendor: AuthenticAMD CPU Family: 0x15 CPU Model: 0x2 CPU Stepping: 0x0 CPU Type: 0x0 Speed: 4400 Mhz 8 logical processors 8 physical processors HyperThreading: Unsupported FCMOV: Supported SSE2: Supported SSE3: Supported SSSE3: Supported SSE4a: Supported SSE41: Supported SSE42: Supported
Network Information: Network Speed:
Operating System Version: "Gentoo Base System release 2.2" (64 bit) Kernel Name: Linux Kernel Version: 3.16.3-ck2 X Server Vendor: The X.Org Foundation X Server Release: 11600901 X Window Manager: KWin Steam Runtime Version: steam-runtime-release_2014-08-20
Video Card: Driver: NVIDIA Corporation GeForce GTX 660 Ti/PCIe/SSE2
Driver Version: 4.4.0 NVIDIA 343.22
OpenGL Version: 4.4
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 59 Hz
VendorID: 0x10de
DeviceID: 0x1183
Number of Monitors: 1
Number of Video Cards Not Detected
Primary Display Resolution: 1920 x 1200
Desktop Resolution: 1920 x 1200
Primary Display Size: 20.39" x 12.76" (24.02" diag)
51.8cm x 32.4cm (61.0cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 2048 MB
Supported MSAA Modes: 2x 4x 8x 16x
Sound card: Audio device: Realtek ALC889
Memory: RAM: 16015 Mb
Miscellaneous: UI Language: English LANG: en_US.utf8 Microphone: Not set Total Hard Disk Space Available: 1602054 Mb Largest Free Hard Disk Block: 873135 Mb
Installed software:
Recent Failure Reports:
I had this issue as well earlier today, so I can confirm.
Processor Information:
Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x1a
CPU Stepping: 0x5
CPU Type: 0x0
Speed: 2661 Mhz
8 logical processors
4 physical processors
HyperThreading: Supported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Unsupported
SSE41: Supported
SSE42: Supported
Network Information:
Network Speed:
Operating System Version:
"Gentoo Base System release 2.2" (64 bit)
Kernel Name: Linux
Kernel Version: 3.16.3-gentoo
X Server Vendor: The X.Org Foundation
X Server Release: 11601000
X Window Manager: awesome
Steam Runtime Version: steam-runtime-release_2014-08-20
Video Card:
Driver: NVIDIA Corporation GeForce GTX 480/PCIe/SSE2
Driver Version: 4.4.0 NVIDIA 343.22
OpenGL Version: 4.4
Desktop Color Depth: 24 bits per pixel
Monitor Refresh Rate: 59 Hz
VendorID: 0x10de
DeviceID: 0x6c0
Number of Monitors: 2
Number of Video Cards Not Detected
Primary Display Resolution: 1920 x 1080
Desktop Resolution: 3840 x 1080
Primary Display Size: 20.91" x 11.77" (23.98" diag)
53.1cm x 29.9cm (60.9cm diag)
Primary Bus: PCI Express 16x
Primary VRAM: 1536 MB
Supported MSAA Modes: 2x 4x 8x 16x
Sound card:
Audio device: Realtek ALC889
Memory:
RAM: 12042 Mb
Miscellaneous:
UI Language: English
LANG: en_US.utf8
Microphone: Not set
Total Hard Disk Space Available: 28047 Mb
Largest Free Hard Disk Block: 9966 Mb
Installed software:
Recent Failure Reports:
Tue Sep 23 06:36:06 2014 GMT: file ''/tmp/dumps/crash_20140922233252_1.dmp'', upload yes: ''CrashID=bp-94a4d89c-796f-4242-90c1-c61512140922''
Tue Sep 23 20:03:52 2014 GMT: file ''/tmp/dumps/crash_20140923130256_1.dmp'', upload yes: ''CrashID=bp-08780f21-fa7a-4c0c-99e6-4e0fb2140923''
Tue Sep 23 20:04:39 2014 GMT: file ''/tmp/dumps/crash_20140923130320_1.dmp'', upload yes: ''CrashID=bp-a1efe7ae-f34a-4cee-9c84-988872140923''
Tue Sep 23 21:50:35 2014 GMT: file ''/tmp/dumps/crash_20140923144635_1.dmp'', upload yes: ''CrashID=bp-c7535e40-1008-4a10-ba73-34b512140923''
If you shift tab before alt tabbing you can move the mouse freely, then click back into the game and shift tab again.
This is the work around i use for now.
Im having the same issue. But shooting (mouse1) gives me ctrl over the game again.
I have same problem from the date of CSGO release to Linux. Im using Gentoo 3.18.3, Nvidia 343.36, KDE 4.14.3.
Also, mouse only locks if you are in the active game (connected to server, joined team...). If you are in main menu or ESC menu while connected to server mouse doesnt lock. Obviously something is moving mouse to center while chrosshair is active. Mouse is not locked in the middle per se, it is returned back to middle if you move it so little deviation is possible.
On my side bug only happens if I minimize CSGO or change desktop, it does not happen when I ALT+TAB. So if CSGO and steam client are running on desktop 3 and I want to check something on desktop 1 I need to alt-tab from CSGO to Steam client (or any other applicaiton on same desktop) and then switch to desktop 1. If I directly switch to desktop 1 or minimize CSGO and switch, mouse is locked.
Similar thing happens with gamma settings, when I minimize or switch desktop (without alt tabbing) whole desktop environment is bright.
Please fix this bugs, they are 0day problems!
Can confirm this happens on OS X as well as of June 2, 2016. Quick fix for me was adding "-noexclusivefs" in launch options.
System information:
Computer Information:
Manufacturer: Apple
Model: MacBookPro10,1
Form Factor: Laptop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x3a
CPU Stepping: 0x9
CPU Type: 0x0
Speed: 2300 Mhz
8 logical processors
4 physical processors
HyperThreading: Supported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Unsupported
SSE41: Supported
SSE42: Supported
AES: Supported
AVX: Supported
CMPXCHG16B: Supported
LAHF/SAHF: Supported
PrefetchW: Unsupported
Network Information:
Network Speed:
Operating System Version:
MacOS 10.11.5 (64 bit)
Video Card:
Driver: NVIDIA GeForce GT 650M
Driver Version: 1.2
Driver Date: 0 0
OpenGL Version: 2.1
Desktop Color Depth: 32 bits per pixel
Monitor Refresh Rate: 0 Hz
VendorID: 0x10de
DeviceID: 0xfd5
Number of Monitors: 1
Number of Logical Video Cards: 2
Primary Display Resolution: 1440 x 900
Desktop Resolution: 1440 x 900
Primary Display Size: 13.03" x 8.11" (15.31" diag)
33.1cm x 20.6cm (38.9cm diag)
Primary VRAM: 0 MB
Memory:
RAM: 8192 Mb
Miscellaneous:
UI Language: English
Microphone: Not set
Media Type: DVD
Total Hard Disk Space Available: 238208 Mb
Largest Free Hard Disk Block: 48511 Mb
VR Headset: None detected
This sounds like libSDL2 does not detect when a desktop environment aggressively takes focus away from an application.
I can't reproduce this on KDE Plasma Wayland session.
Closing per the last comment.