diff options
| author | Po Lu | 2025-02-19 15:34:51 +0800 |
|---|---|---|
| committer | Po Lu | 2025-02-19 15:34:51 +0800 |
| commit | e97be722d392056b6ef9e47664273ee2ca7df374 (patch) | |
| tree | b476c3a5fd4eaa25314cd4a480e5b6daa8cddaca /java | |
| parent | 0cf3d3415224204c82efda373ffc7055163b1893 (diff) | |
| download | emacs-e97be722d392056b6ef9e47664273ee2ca7df374.tar.gz emacs-e97be722d392056b6ef9e47664273ee2ca7df374.zip | |
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.
Diffstat (limited to 'java')
| -rw-r--r-- | java/org/gnu/emacs/EmacsWindow.java | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/java/org/gnu/emacs/EmacsWindow.java b/java/org/gnu/emacs/EmacsWindow.java index fec95526835..2f4e378fb78 100644 --- a/java/org/gnu/emacs/EmacsWindow.java +++ b/java/org/gnu/emacs/EmacsWindow.java | |||
| @@ -365,8 +365,17 @@ public final class EmacsWindow extends EmacsHandleObject | |||
| 365 | run () | 365 | run () |
| 366 | { | 366 | { |
| 367 | if (overrideRedirect) | 367 | if (overrideRedirect) |
| 368 | /* Set the layout parameters again. */ | 368 | { |
| 369 | view.setLayoutParams (getWindowLayoutParams ()); | 369 | WindowManager.LayoutParams params; |
| 370 | |||
| 371 | /* Set the layout parameters again. */ | ||
| 372 | params = getWindowLayoutParams (); | ||
| 373 | view.setLayoutParams (params); | ||
| 374 | |||
| 375 | /* Announce this update to the window server. */ | ||
| 376 | if (windowManager != null) | ||
| 377 | windowManager.updateViewLayout (view, params); | ||
| 378 | } | ||
| 370 | 379 | ||
| 371 | view.mustReportLayout = true; | 380 | view.mustReportLayout = true; |
| 372 | view.requestLayout (); | 381 | view.requestLayout (); |