mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-23 20:51:14 +00:00

When moving the mouse through the menu bar, over a part that's not occupied by menu items, the Mac menu class will start calling processEvent() recursively. This is bad for two reasons: During the recursion (which can easily reach a depth of dozens or even hundreds of calls) there is no delay, so it will use 100% CPU. And once the recursion unwinds, all the delays will come at once. This moves the call to eventLoop() to after the first event has been fully processed. Hopefully that will have approximately the same desired effect, without any of the bad side effects.