macos: Avoid repeatedly sending events back to macOS
Fix the rendering issue outlined in #6642 (closed).
With the fuzzy matching we sometimes send NSevent
s to the NSApp
multiple times, which seems to confuse it.
By popping the event off of the queue, we ensure the event only forward once.
Edited by Arjan Molenaar