]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove check for appdefined events on the queue (bug#65843)
authorAlan Third <alan@idiocy.org>
Mon, 11 Sep 2023 16:18:31 +0000 (17:18 +0100)
committerAlan Third <alan@idiocy.org>
Mon, 11 Sep 2023 16:22:01 +0000 (17:22 +0100)
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.

src/nsterm.m

index c0b5e1b898f5b2e0ebe383fe0511b42f77a10ad9..33350575bcfcab6a29ec4de29accd8dbbfe11ca2 100644 (file)
@@ -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;