GNU bug report logs - #47731
28.0.50; Switching frame via keyboard does not fire focus change event

Previous Next

Package: emacs;

Reported by: Sean Farley <sean <at> farley.io>

Date: Mon, 12 Apr 2021 16:19:02 UTC

Severity: normal

Tags: confirmed, help

Merged with 3397, 37529

Found in versions 27.0.50, 28.0.50

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Sean Farley <sean <at> farley.io>
Cc: Alan Third <alan <at> idiocy.org>, 47731 <at> debbugs.gnu.org
Subject: bug#47731: 28.0.50; Switching frame via keyboard does not fire focus change event
Date: Thu, 06 May 2021 11:54:10 +0200
Sean Farley <sean <at> farley.io> writes:

> Here is some testing code:
> (defun test--focus-out ()
>   (message "FOCUS TEST"))
>
> (add-function :after after-focus-change-function #'test--focus-out)
> (make-frame)
>
> On macOS, this code runs fine if you click on the other frame. But if
> using the keyboard shortcut Command-` the event doesn't fire. It seems
> to be some interaction in the keydown event function where emacs_event
> is cleared before the call to windowDidBecomeKey.

I haven't tested the recipe, but perhaps Alan has some comments here
(added to the CCs).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 97 days ago.

Previous Next


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