diff options
| author | Po Lu | 2023-03-06 11:25:51 +0800 |
|---|---|---|
| committer | Po Lu | 2023-03-06 11:25:51 +0800 |
| commit | 97ca0a855116797779450bfb758ea6c706348df3 (patch) | |
| tree | ac323afb4eb8a92f55f76d31ea89589de65fda9b /src/androidterm.c | |
| parent | 0dbbdd20f44c7757835a85a30763af18491f6eb1 (diff) | |
| download | emacs-97ca0a855116797779450bfb758ea6c706348df3.tar.gz emacs-97ca0a855116797779450bfb758ea6c706348df3.zip | |
Update Android port
* java/org/gnu/emacs/EmacsService.java (sync): Delete function.
* java/org/gnu/emacs/EmacsView.java (handleDirtyBitmap): Erase
with window background.
(onDetachedFromWindow): Only recycle bitmap if non-NULL.
* java/org/gnu/emacs/EmacsWindow.java (background): New field.
(changeWindowBackground): Set it.
* src/android.c (struct android_emacs_service): Remove `sync'.
(android_init_emacs_service): Likewise.
(android_sync): Delete function.
* src/androidfns.c (android_create_tip_frame): Set frame
background color correctly.
(Fx_show_tip): Make the tip frame visible.
* src/androidgui.h: Update prototypes.
* src/androidterm.c (handle_one_android_event): Handle tooltip
movement correctly.
Diffstat (limited to 'src/androidterm.c')
| -rw-r--r-- | src/androidterm.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/androidterm.c b/src/androidterm.c index 814af87819b..a6709ac8169 100644 --- a/src/androidterm.c +++ b/src/androidterm.c | |||
| @@ -676,6 +676,16 @@ handle_one_android_event (struct android_display_info *dpyinfo, | |||
| 676 | if (!f) | 676 | if (!f) |
| 677 | goto OTHER; | 677 | goto OTHER; |
| 678 | 678 | ||
| 679 | if (FRAME_TOOLTIP_P (f)) | ||
| 680 | { | ||
| 681 | if (FRAME_PIXEL_HEIGHT (f) != configureEvent.xconfigure.height | ||
| 682 | || FRAME_PIXEL_WIDTH (f) != configureEvent.xconfigure.width) | ||
| 683 | SET_FRAME_GARBAGED (f); | ||
| 684 | |||
| 685 | FRAME_PIXEL_HEIGHT (f) = configureEvent.xconfigure.height; | ||
| 686 | FRAME_PIXEL_WIDTH (f) = configureEvent.xconfigure.width; | ||
| 687 | } | ||
| 688 | |||
| 679 | int width = configureEvent.xconfigure.width; | 689 | int width = configureEvent.xconfigure.width; |
| 680 | int height = configureEvent.xconfigure.height; | 690 | int height = configureEvent.xconfigure.height; |
| 681 | 691 | ||