Properly move existing tooltips on Android

* java/org/gnu/emacs/EmacsWindow.java (requestViewLayout): If an
override redirect window, additionally notify the window manager
of layout changes.
This commit is contained in:
Po Lu 2025-02-19 15:34:51 +08:00
parent 0cf3d34152
commit e97be722d3

View file

@ -365,8 +365,17 @@ private static class Coordinate
run ()
{
if (overrideRedirect)
/* Set the layout parameters again. */
view.setLayoutParams (getWindowLayoutParams ());
{
WindowManager.LayoutParams params;
/* Set the layout parameters again. */
params = getWindowLayoutParams ();
view.setLayoutParams (params);
/* Announce this update to the window server. */
if (windowManager != null)
windowManager.updateViewLayout (view, params);
}
view.mustReportLayout = true;
view.requestLayout ();