]> git.eshelyaron.com Git - emacs.git/commit
Resolve disagreements in accounting of tooltip positions on Android
authorPo Lu <luangruo@yahoo.com>
Sun, 7 Apr 2024 06:39:42 +0000 (14:39 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 7 Apr 2024 16:34:44 +0000 (18:34 +0200)
commit9ff932c984c9816af38384649c180c2e830b6327
tree2a8fa4b7468c1e334e78f78ae34cfef3d5d5a004
parentfa754d1c1457c20e140ea7a038f521a95bcd023d
Resolve disagreements in accounting of tooltip positions on Android

* java/org/gnu/emacs/EmacsService.java (getLocationInWindow):
New function.

* java/org/gnu/emacs/EmacsWindow.java (translateCoordinates):
Derive "root window" position from the origin point of the
containing activity's window rather than that of the screen,
the two of which differ when "freeform mode" is enabled.

(cherry picked from commit 8ee1dc8f1f9aa47260f8151c9eea30fb1ccf878a)
java/org/gnu/emacs/EmacsService.java
java/org/gnu/emacs/EmacsWindow.java