diff options
| author | Po Lu | 2023-03-07 16:49:45 +0800 |
|---|---|---|
| committer | Po Lu | 2023-03-07 16:49:45 +0800 |
| commit | 83c29bd40e0c7e3975f575067a3112a0191b5590 (patch) | |
| tree | c1597b0d54bdd947b274d2cad9d0f51e0ff03b60 /java/org/gnu | |
| parent | 327c2658ac1d02202118e4e0e4649496b99285f3 (diff) | |
| download | emacs-83c29bd40e0c7e3975f575067a3112a0191b5590.tar.gz emacs-83c29bd40e0c7e3975f575067a3112a0191b5590.zip | |
Update Android port
* java/org/gnu/emacs/EmacsWindow.java (onSomeKindOfMotionEvent):
Dismiss splurious LeaveNotify events from button presses.
* src/android.c (android_change_window_attributes)
(android_change_gc, android_set_clip_rectangles)
(android_reparent_window, android_clear_window, android_map_window)
(android_unmap_window, android_resize_window, android_move_window)
(android_swap_buffers, android_fill_rectangle, android_copy_area)
(android_fill_polygon, android_draw_rectangle, android_draw_point)
(android_draw_line, android_clear_area, android_bell)
(android_set_input_focus, android_raise_window)
(android_lower_window, android_set_dont_focus_on_map)
(android_set_dont_accept_focus, android_get_keysym_name)
(android_toggle_on_screen_keyboard, android_restart_emacs)
(android_display_toast, android_update_ic, android_reset_ic)
(android_set_fullscreen): Optimize by specifying the class
explicitly when calling a method.
Diffstat (limited to 'java/org/gnu')
| -rw-r--r-- | java/org/gnu/emacs/EmacsWindow.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/java/org/gnu/emacs/EmacsWindow.java b/java/org/gnu/emacs/EmacsWindow.java index 9d907d2b481..3569d93136b 100644 --- a/java/org/gnu/emacs/EmacsWindow.java +++ b/java/org/gnu/emacs/EmacsWindow.java | |||
| @@ -906,9 +906,16 @@ public final class EmacsWindow extends EmacsHandleObject | |||
| 906 | return true; | 906 | return true; |
| 907 | 907 | ||
| 908 | case MotionEvent.ACTION_HOVER_EXIT: | 908 | case MotionEvent.ACTION_HOVER_EXIT: |
| 909 | EmacsNative.sendLeaveNotify (this.handle, (int) event.getX (), | 909 | |
| 910 | (int) event.getY (), | 910 | /* If the exit event comes from a button press, its button |
| 911 | event.getEventTime ()); | 911 | state will have extra bits compared to the last known |
| 912 | button state. Since the exit event will interfere with | ||
| 913 | tool bar button presses, ignore such splurious events. */ | ||
| 914 | |||
| 915 | if ((event.getButtonState () & ~lastButtonState) == 0) | ||
| 916 | EmacsNative.sendLeaveNotify (this.handle, (int) event.getX (), | ||
| 917 | (int) event.getY (), | ||
| 918 | event.getEventTime ()); | ||
| 912 | return true; | 919 | return true; |
| 913 | 920 | ||
| 914 | case MotionEvent.ACTION_BUTTON_PRESS: | 921 | case MotionEvent.ACTION_BUTTON_PRESS: |