ValveSoftware / Source-1-Games

Source 1 based games such as TF2 and Counter-Strike: Source
635 stars 74 forks source link

[TF2] [Linux] switch input source minimizes game window with vulkan #5896

Open SadDwarf opened 5 months ago

SadDwarf commented 5 months ago

I have two input sources set at my OS to write text in different languages. When I switch input source while in game (e.g. to text in chat), TF2 window suddenly minimizes (similar to alt-tab, but with slightly different animation). It reproduces every time I switch input source.

I tried different keys as Switch to next input source hotkey but problem occurred for every key.

The problem happens only when game run in fullscreen mode. Also, this problem occurs only with vulkan version of the game. I tried legacy OpenGL version and it works fine.

tech info: OS: Ubuntu 23.10 x86_64 Kernel: 6.5.0-28-generic Resolution: 2560x1440, 2560x1440 DE: GNOME 45.2 WM: Mutter CPU: AMD Ryzen 9 5900X (24) GPU: NVIDIA GeForce RTX 3090 Memory: 32026MiB

SadDwarf commented 5 months ago

Just found workaround for my problem. I set hotkey for switching input source via gnome tweak tools instead of Ubuntu system settings app. And if I use this hotkey, the problem does not happen. I do not understand why it happens, but probably switching input source via tweak tools hotkey works slightly different.

It's still not very comfortable since if I bind switch to super+space via tweak tool, it doesn't work (not really understand why). So I have to get used to new hotkey.