https://bugs.winehq.org/show_bug.cgi?id=49667
--- Comment #4 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
This issue is specifically caused by 0008-winex11.drv-Listen-to-RawMotion-and-RawButton-events.
Removing that single patch fixes the issue, but then introduces another issue: When clicking a button, the mouse jumps by a large offset. Removing the patchset user32-rawinput-mouse-experimental fixes that second issue.
Instead of removing the patches, I tried to detect when wine doesn't have the focus window and disable sending rawinput events in that case. My limited knowledge and understanding of the rawinput and winex11.drv code was not enough to achieve that.
Regards.