https://bugs.winehq.org/show_bug.cgi?id=48419
--- Comment #8 from RĂ©mi Bernon rbernon@codeweavers.com --- Created attachment 66253 --> https://bugs.winehq.org/attachment.cgi?id=66253 Patch for staging
This should fix the problem in virtual desktop mode by not listening to raw input events anymore when it is not focused.
It creates a layer of isolation when using virtual desktop mode, but it also means that in this mode wine can lose some raw events and have its keyboard/mouse button state get out of sync.