https://bugs.winehq.org/show_bug.cgi?id=57603
--- Comment #8 from PennRobotics irischer.posaunist@gmail.com --- X11DRV_MotionNotify (uses A coords), map_event_coords (A to B), NtUserTrackMouseEvent (uses B coords), and then window_from_point (uses A coords)
The B coord numbers are always higher than the A coord's.
X11DRV_MotionNotify refers to 0x10072/2000003 NtUserTrackMouseEvent uses 0x10076
They both seem to be the plugin window (rect 0,0 to 805,460), so I'd expect them to use the same coords or same handle, but I guess that's the purpose of the comparison near line 500 in dlls/winex11.drv/mouse.c
That's about the extent of my mental energy today.
There should be enough there to figure out if yabridge needs to give Wine more information or if the mapping is happening improperly in this case.