GNU bug report logs - #34213
27.0.50; Menu bar requires 2 clicks, is unresponsive, or has delays on macOS Mojave

Previous Next

Package: emacs;

Reported by: Anthony Michael Agelastos <iqgrande <at> gmail.com>

Date: Sat, 26 Jan 2019 23:31:02 UTC

Severity: normal

Merged with 24719, 32864, 44333

Found in versions 26.0.50, 26.1, 27.0.50, 27.1

Done: Alan Third <alan <at> idiocy.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 34213 <at> debbugs.gnu.org (full text, mbox):

From: Alan Third <alan <at> idiocy.org>
To: David Hart <david <at> iamdavidhart.com>
Cc: iqgrande <at> gmail.com, 34213 <at> debbugs.gnu.org
Subject: Re: 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




This bug report was last modified 4 years and 141 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.