http://bugs.winehq.org/show_bug.cgi?id=31702
--- Comment #28 from voidcastr cephryx@gmx.net 2012-09-24 05:02:15 CDT --- The call of ungrab_clipping_window() getting spammed on moving the mouse is the one at the bottom of X11DRV_ClipCursor(LPCRECT).
The upper call in the same method is executed once every time a previously pressed mouse button gets released.
With "rectangle changes" you refer to the LPCRECT given to X11DRV_ClipCursor, right? That one remains constant. I added this trace to the end of the method, right before the call of ungrab_clipping_window():
TRACE( "clip (left/right/top/bottom): %u %u %u %u\n", clip->left, clip->right, clip->top, clip->bottom );
Result:
clip (left/right/top/bottom): 0 1920 0 1080
all the time.