“This function is not recommended for general use because of
undocumented special cases and undesirable side effects. The
recommended replacement for this function is
CGEventSourceSetLocalEventsSuppressionInterval, which allows the
suppression interval to be adjusted for a specific event source,
affecting only events posted using that event source.”
2012/11/29 brada :> should be an easy fix involving CGSetLocalEventsSuppressionInterval
unfortunately it is labeled as deprecated with no listed replacement.