protonscr

steam chat windows close when gaining focus with ctrl-w held

steamopen Web Component
ValveSoftware/steam-for-linux#7356 · opened 2020-09-11 by bldewolf · updated 2022-01-28 · 2 comments · github
Bbldewolf 2020-09-11 github

Your system information

  • Steam client version (build number or date): 2020-09-10
  • Distribution (e.g. Ubuntu): Arch (xfce window manager)
  • Opted into Steam client beta?: [Yes/No] No
  • Have you checked for system updates?: [Yes/No] Yes

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large code pastes as a Github Gist

Sometimes, when multi-tasking during a chat session, the chat tab on my screen will abruptly close. This happens whenever I close a window with ctrl-w and steam becomes the active window after that. Since ctrl-w is still held, it apparently takes this as input and closes the chat tab.

I realized that this could be due to autorepeat so I tested with autorepeat off and the issue persists (and does not occur when using two firefox windows with autorepeat off).

Steps for reproducing this issue:

  1. Open a chat with someone
  2. Open another application that exits on ctrl-w (for example, firefox or thunar)
  3. alt-tab (single presses) between example program and the steam chat window to confirm steam chat window is next in line for focus
  4. press and release ctrl-w slowly to close the example program and observe steam also closing the chat session
Kkisak-valve maintainer 2020-09-11 github

Behavior most likely inherited from chrome/libcef's hardwired close tab hotkey.

AArcitec 2022-01-28 github

This issue drives me completely crazy. Happens at least once per day, since I'll just close some window with Ctrl-W and suddenly Steam is gone too.

The issue is that Steam is reacting to "key held" instead of waiting for the appropriate event "key down". Something is wrong in its keyboard processing.

Nothing extracted yet.