From: Alan Third Date: Mon, 11 Sep 2023 16:18:31 +0000 (+0100) Subject: Remove check for appdefined events on the queue (bug#65843) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6acb3c5b05a7b9fb32a5336e1bb740f527571ae9;p=emacs.git Remove check for appdefined events on the queue (bug#65843) It seems this was likely a bug in macOS 10.10.1. I have no way to find out when it was fixed, but hopefully before 10.10.5, the most recent release of that version. * src/nsterm.m (ns_send_appdefined): Remove check for whether previous appdefined events have been lost. --- diff --git a/src/nsterm.m b/src/nsterm.m index c0b5e1b898f..33350575bcf 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -4560,21 +4560,6 @@ ns_send_appdefined (int value) /* Only post this event if we haven't already posted one. This will end the [NXApp run] main loop after having processed all events queued at this moment. */ - -#ifdef NS_IMPL_COCOA - if (! send_appdefined) - { - /* OS X 10.10.1 swallows the AppDefined event we are sending ourselves - in certain situations (rapid incoming events). - So check if we have one, if not add one. */ - NSEvent *appev = [NSApp nextEventMatchingMask:NSEventMaskApplicationDefined - untilDate:[NSDate distantPast] - inMode:NSDefaultRunLoopMode - dequeue:NO]; - if (! appev) send_appdefined = YES; - } -#endif - if (send_appdefined) { NSEvent *nxev;