Input lag with keyboard input in wine/proton games

Description:

With ibus version 1.5.30, there seems to be lag or desync with keyboard input for games running through wine/proton. For example, the game Noita will see delayed inputs, sometimes dropped all together. This occurs despite normal framerate and mouse cursor movement.

Additional info:

I am using Gnome as my desktop environment on X11 with a high refresh rate VRR monitor.

Steps to reproduce:

  1. Run a game through wine/proton that requires keyboard input
  2. Repeatedly press keyboard keys
  3. Notice the input lag