diff options
| author | Po Lu | 2023-02-17 21:31:43 +0800 |
|---|---|---|
| committer | Po Lu | 2023-02-17 21:31:43 +0800 |
| commit | e88730a4b439b3b534048c6f419d651a4c0cc76d (patch) | |
| tree | f50730706aa04830f092bbf8c1f945437a3324ff /src/androidterm.c | |
| parent | d70bb47aeb586bfa5feb29d6f3759604eb93829a (diff) | |
| download | emacs-e88730a4b439b3b534048c6f419d651a4c0cc76d.tar.gz emacs-e88730a4b439b3b534048c6f419d651a4c0cc76d.zip | |
Work around race condition bug in Android 13's input manager
* src/androidterm.c (android_get_selection): Use ephemeral last
point.
* src/textconv.c (report_selected_window_change): Set
w->ephemeral_last_point to the window's point now.
Diffstat (limited to 'src/androidterm.c')
| -rw-r--r-- | src/androidterm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/androidterm.c b/src/androidterm.c index 8a07bfa7455..0fbee1e9867 100644 --- a/src/androidterm.c +++ b/src/androidterm.c | |||
| @@ -4841,7 +4841,7 @@ android_get_selection (void *data) | |||
| 4841 | /* Return W's point at the time of the last redisplay. This is | 4841 | /* Return W's point at the time of the last redisplay. This is |
| 4842 | rather important to keep the input method consistent with the | 4842 | rather important to keep the input method consistent with the |
| 4843 | contents of the display. */ | 4843 | contents of the display. */ |
| 4844 | context->point = w->last_point; | 4844 | context->point = w->ephemeral_last_point; |
| 4845 | } | 4845 | } |
| 4846 | } | 4846 | } |
| 4847 | 4847 | ||