I simplified the winex11 event merging instead of complicating it and kept only the merging of ConfigureNotify events.
I dropped the merging of RawMotion events, because even though it would reduce wineserver calls when a lot of events are received, it is not how rawinput is supposed to work.
I also don't think merging MotionNotify events is very useful, to reduce the number of redundant messages sent to wineserver as well, so I dropped it too.
If we want to reduce the wineserver calls, I think a better approach would be to send input in batch.