bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#34213: 27.0.50; Menu bar requires 2 clicks, is unresponsive, or has


From: Alan Third
Subject: bug#34213: 27.0.50; Menu bar requires 2 clicks, is unresponsive, or has delays on macOS Mojave
Date: Mon, 6 Apr 2020 19:54:08 +0100

On Mon, Apr 06, 2020 at 03:19:25AM -0700, David Hart wrote:
> The mechanism used in the ns port of emacs to cancel menu tracking, and to
> post a CGEvent to resume it after menus have been updated via lisp no
> longer works on recent macOS versions.
> 
> The cause of this bug is due to Apple tightening security in macOS, and no
> longer allowing apps to post arbitrary CGEvents to the system.
> 
> You can observe a console message on macOS Catalina when the first click
> fails: "Sender is prohibited from synthesizing events".
> 
> A proposed fix is included inline below, using a newer API
> 'CGEventPostToPid' instead of CGEventPost. The newer API accepts a pid
> specifying the recipient, and when the recipient is the same pid as the
> sending process, the event gets posted successfully.

Hi, thanks for looking into this. Unfortunately your fix doesn’t work
for me here on macOS 10.14.

Which version of macOS did you test it on?
-- 
Alan Third





reply via email to

[Prev in Thread] Current Thread [Next in Thread]