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.
This commit is contained in:
@@ -387,6 +387,23 @@ public final class EmacsService extends Service
|
||||
EmacsService.<Void>syncRunnable (task);
|
||||
}
|
||||
|
||||
public void
|
||||
getLocationInWindow (final EmacsView view, final int[] coordinates)
|
||||
{
|
||||
FutureTask<Void> task;
|
||||
|
||||
task = new FutureTask<Void> (new Callable<Void> () {
|
||||
public Void
|
||||
call ()
|
||||
{
|
||||
view.getLocationInWindow (coordinates);
|
||||
return null;
|
||||
}
|
||||
});
|
||||
|
||||
EmacsService.<Void>syncRunnable (task);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static void
|
||||
|
||||
Reference in New Issue
Block a user