]> git.eshelyaron.com Git - emacs.git/commit
Fix frame focus tracking under Android
authorPo Lu <luangruo@yahoo.com>
Mon, 5 Feb 2024 10:34:22 +0000 (18:34 +0800)
committerEshel Yaron <me@eshelyaron.com>
Wed, 7 Feb 2024 10:51:49 +0000 (11:51 +0100)
commitce3cbaecafdbbe32d9bdc9b30c6f96b110013ce2
tree7599beeca9e99936a0a9563cd5dac073ef29231f
parentb925f68b8f314d8540cfd7836c0436a665fdf631
Fix frame focus tracking under Android

* java/org/gnu/emacs/EmacsActivity.java (invalidateFocus): New
argument WHENCE, a unique number identifying the circumstances
leading up to the call.  All callers changed.
(attachWindow): Call `invalidateFocus' from the UI thread.
(onWindowFocusChanged): Don't remove activity from
`focusedActivities' if it already exists should `hasWindowFocus'
return true.

(cherry picked from commit c1f8fe09e6641cc6c1195edcb8666ace1e6e8829)
java/org/gnu/emacs/EmacsActivity.java
java/org/gnu/emacs/EmacsWindow.java