This can be reproduced with any example that creates a window. We shouldn't be seeing that constant stream of events. A naive solution would be to only dispatch CursorMoved events if the cursor position value actually changed, which we should probably do at some point, but that doesn't change the underlying problem that the OS is dispatching way too many events.
I did a git bisect and this seems to have been introduced by 7be1d16.