]> git.eshelyaron.com Git - emacs.git/commit
Correctly display popup dialogs from Emacsclient
authorPo Lu <luangruo@yahoo.com>
Thu, 8 Jun 2023 12:50:02 +0000 (20:50 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 8 Jun 2023 12:50:02 +0000 (20:50 +0800)
commit1661762784520eb6834aa9831dcb646396efde73
tree3ae23231862b09b568956948595d7b902e770da8
parentb1bd40dce197d2938426d1ec33cebd3d51ccc8cf
Correctly display popup dialogs from Emacsclient

* java/org/gnu/emacs/EmacsContextMenu.java (EmacsContextMenu):
Make subclasses final.
* java/org/gnu/emacs/EmacsDialog.java (display1): Check if an
instance of EmacsOpenActivity is open; if it is, try using it to
display the pop up dialog.
* java/org/gnu/emacs/EmacsDialogButtonLayout.java
(EmacsDialogButtonLayout): Make final.
* java/org/gnu/emacs/EmacsHolder.java (EmacsHolder<T>):
Likewise.
* java/org/gnu/emacs/EmacsOpenActivity.java (EmacsOpenActivity):
New field `currentActivity'.
(onCreate, onDestroy, onWindowFocusChanged, onPause): Set that
field as appropriate.
java/org/gnu/emacs/EmacsContextMenu.java
java/org/gnu/emacs/EmacsDialog.java
java/org/gnu/emacs/EmacsDialogButtonLayout.java
java/org/gnu/emacs/EmacsHolder.java
java/org/gnu/emacs/EmacsOpenActivity.java