Game loses keyboard input after switching windows

I’m flying 3 clients at the same time. Since two days ago clients started to lose keyboard input after I switch between them. Mouse works just fine tho. I haven’t been able to figure a pattern, sometimes I may successfully switch between clients more than 10 times in a row, sometimes it breaks every time I switch. The issue eventually fixes itself after couple of switches between clients.

It’s very annoying and borderline dangerous when doing some pvp/pve that requires timed input, because they may just not work.

More environmental context:
I’m using native steam client for NixOS (Wayland + Sway), though steam runs via Xwayland. All clients are on different sway “desktops”. I switch between them with Mod + n or Mod + Tab.

What I’ve tried:

  • Different proton versions: (8.0-5 - launcher won’t start, 9.0-4, Experimental, Hotfix). No effect
  • DX11 (DX12 is my default). No effect
  • Gamescope. Doesn’t support multiple windows, so won’t do and I couldn’t properly test multiple clients.
  • Manually focusing on a game window via swaymsg -r focus. No effect
  • Making eve client windows floating by default. No effect

Also nothing interesting in steam client logs and no entries in LogLite.

Also I wasn’t able to reproduce it running single client and switching between it and another desktop (eg FF). However the issue does occur if I have multiple clients running and I switch between one specific client and other random desktop, which even more confuses me

Ok, looks like this solved the issue.

Single command:

WINEPREFIX=~/.local/share/Steam/steamapps/compatdata/8500/pfx wine reg add 'HKEY_CURRENT_USER\Software\Wine\X11 Driver' /t REG_SZ /v UseTakeFocus /d N /f

It’s strange how it broke, 'cause I didn’t even had separate wine package installed before I had to use regedit , I only used proton shipped with Steam. So I never had this reg record before and worked for a year?

CCP please make a proper support for Linux

Moved topic from General to Linux

I’ve had focus problem for a long time, dont remember if I ever tried that fix. I run 6 clients, in 2 monitors, my problem though is different, when I switch between them, either by mouse click or alt tab… it acts as if the ALT key was depressed, so, trying to use F1 to shoot will get me that click sound like when you hit an empty button/slot (because the game thinks Im trying the rows below. So, I have to click in space, and then I have to do a mouse scroll to make sure Im focused and that the ALT key is not active. And yes, its a problem when you really need to do some action, but I’ve grown used to it. I will try that fix some other night, see if that helps, I’ll report :slight_smile: