Skip to content

Instantly share code, notes, and snippets.

@alimsk
Last active February 21, 2022 00:01
Show Gist options
  • Save alimsk/71bd6d2ed4eed6c23a92462d0b60e406 to your computer and use it in GitHub Desktop.
Save alimsk/71bd6d2ed4eed6c23a92462d0b60e406 to your computer and use it in GitHub Desktop.
fix wine keyboard not working after alt-tabbing or switching app (lose focus)

do the following:

  • open regedit (type wine regedit in your terminal)
  • goto HKEY_CURRENT_USER\Software\Wine\X11 Driver.

if any of those key didn't exist, then create it by right clicking the node > new > key.

image showing how to create new key

and name it according to which key is missing. in my case, the X11 Driver didn't exist, so i create it:

naming

  • create a new string entry named UseTakeFocus with value N (inside X11 Driver)

if you don't really understand what i'm saying, here's the detailed instructions:

right click on the empty space:

image showing how to create entry

name it UseTakeFocus.

then right click the entry and edit it:

now it should looks like this:

here's the full screenshot:

full screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment