diff options
| author | Po Lu | 2023-02-08 22:40:10 +0800 |
|---|---|---|
| committer | Po Lu | 2023-02-08 22:40:10 +0800 |
| commit | 0bd4b7fdab2fdf437c4a759d53dfdc9f667aefb1 (patch) | |
| tree | a1320da59f2f5e6a1c0f31b9fd504400da2fcfab /src/androidterm.c | |
| parent | 7fb0df0ce2858eeb03ec18b540acf49a5b8d90c9 (diff) | |
| download | emacs-0bd4b7fdab2fdf437c4a759d53dfdc9f667aefb1.tar.gz emacs-0bd4b7fdab2fdf437c4a759d53dfdc9f667aefb1.zip | |
Update Android port
* doc/lispref/frames.texi (On-Screen Keyboards): Describe return
value of `frame-toggle-on-screen-keyboard'.
* java/org/gnu/emacs/EmacsSurfaceView.java (surfaceChanged)
(surfaceCreated, EmacsSurfaceView): Remove unuseful
synchronization code. The framework doesn't seem to look at
this at all.
* java/org/gnu/emacs/EmacsView.java (EmacsView):
(onLayout): Lay out the window after children.
(swapBuffers): Properly implement `force'.
(windowUpdated): Delete function.
* lisp/frame.el (frame-toggle-on-screen-keyboard): Return
whether or not the on screen keyboard might've been displayed.
* lisp/minibuffer.el (minibuffer-on-screen-keyboard-timer):
(minibuffer-on-screen-keyboard-displayed):
(minibuffer-setup-on-screen-keyboard):
(minibuffer-exit-on-screen-keyboard): Improve OSK dismissal when
there are consecutive minibuffers.
* lisp/touch-screen.el (touch-screen-window-selection-changed):
New function.
(touch-screen-handle-point-up): Register it as a window
selection changed function.
* src/android.c (struct android_emacs_window)
(android_init_emacs_window): Remove references to
`windowUpdated'.
(android_window_updated): Delete function.
* src/android.h (struct android_output): Remove
`last_configure_serial'.
* src/androidterm.c (handle_one_android_event)
(android_frame_up_to_date):
* src/androidterm.h (struct android_output): Remove frame
synchronization, as that does not work on Android.
Diffstat (limited to 'src/androidterm.c')
| -rw-r--r-- | src/androidterm.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/androidterm.c b/src/androidterm.c index d5dafe9b0d7..4aee1a90b68 100644 --- a/src/androidterm.c +++ b/src/androidterm.c | |||
| @@ -591,17 +591,7 @@ handle_one_android_event (struct android_display_info *dpyinfo, | |||
| 591 | android_clear_under_internal_border (f); | 591 | android_clear_under_internal_border (f); |
| 592 | SET_FRAME_GARBAGED (f); | 592 | SET_FRAME_GARBAGED (f); |
| 593 | cancel_mouse_face (f); | 593 | cancel_mouse_face (f); |
| 594 | |||
| 595 | /* Now stash the serial of this configure event somewhere, | ||
| 596 | and call android_window_updated with it once the redraw | ||
| 597 | completes. */ | ||
| 598 | FRAME_OUTPUT_DATA (f)->last_configure_serial | ||
| 599 | = configureEvent.xconfigure.serial; | ||
| 600 | } | 594 | } |
| 601 | else | ||
| 602 | /* Reply to this ConfigureNotify event immediately. */ | ||
| 603 | android_window_updated (FRAME_ANDROID_WINDOW (f), | ||
| 604 | configureEvent.xconfigure.serial); | ||
| 605 | 595 | ||
| 606 | goto OTHER; | 596 | goto OTHER; |
| 607 | 597 | ||
| @@ -1352,14 +1342,6 @@ android_frame_up_to_date (struct frame *f) | |||
| 1352 | /* The frame is now complete, as its contents have been drawn. */ | 1342 | /* The frame is now complete, as its contents have been drawn. */ |
| 1353 | FRAME_ANDROID_COMPLETE_P (f) = true; | 1343 | FRAME_ANDROID_COMPLETE_P (f) = true; |
| 1354 | 1344 | ||
| 1355 | /* If there was an outstanding configure event, then tell system | ||
| 1356 | that the update has finished and the new contents can now be | ||
| 1357 | displayed. */ | ||
| 1358 | if (FRAME_OUTPUT_DATA (f)->last_configure_serial) | ||
| 1359 | android_window_updated (FRAME_ANDROID_WINDOW (f), | ||
| 1360 | FRAME_OUTPUT_DATA (f)->last_configure_serial); | ||
| 1361 | FRAME_OUTPUT_DATA (f)->last_configure_serial = 0; | ||
| 1362 | |||
| 1363 | /* Shrink the scanline buffer used by the font backend. */ | 1345 | /* Shrink the scanline buffer used by the font backend. */ |
| 1364 | sfntfont_android_shrink_scanline_buffer (); | 1346 | sfntfont_android_shrink_scanline_buffer (); |
| 1365 | unblock_input (); | 1347 | unblock_input (); |