]> git.eshelyaron.com Git - emacs.git/commitdiff
Properly move existing tooltips on Android
authorPo Lu <luangruo@yahoo.com>
Wed, 19 Feb 2025 07:34:51 +0000 (15:34 +0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 20 Feb 2025 21:43:10 +0000 (22:43 +0100)
* java/org/gnu/emacs/EmacsWindow.java (requestViewLayout): If an
override redirect window, additionally notify the window manager
of layout changes.

(cherry picked from commit e97be722d392056b6ef9e47664273ee2ca7df374)

java/org/gnu/emacs/EmacsWindow.java

index b91d2de46d9346b59d7d6fc0e1feff1581558960..6a4d4cba9b97f98a5368f50c4940440a70e61081 100644 (file)
@@ -365,8 +365,17 @@ public final class EmacsWindow extends EmacsHandleObject
        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 ();