diff options
| author | Po Lu | 2022-06-25 20:07:35 +0800 |
|---|---|---|
| committer | Po Lu | 2022-06-25 20:08:52 +0800 |
| commit | bdf495f25fe38a151b96c4061fc0dffc121fcc14 (patch) | |
| tree | 09d0ed7f42eb4db6e0e5232cb3f591cb16958fe9 /src | |
| parent | 3d3029353b95360e374fc673339b7c8cd5568db1 (diff) | |
| download | emacs-bdf495f25fe38a151b96c4061fc0dffc121fcc14.tar.gz emacs-bdf495f25fe38a151b96c4061fc0dffc121fcc14.zip | |
Update input_pending after deferring selection requests
* src/xterm.c (x_defer_selection_requests): If kbd_fetch_ptr
moved, update input_pending. Bug found calling
`input-pending-p' inside the DND movement function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 7f43e21e884..7d5794bdd7a 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -842,7 +842,13 @@ x_defer_selection_requests (void) | |||
| 842 | avoids exhausting the keyboard buffer with some | 842 | avoids exhausting the keyboard buffer with some |
| 843 | over-enthusiastic clipboard managers. */ | 843 | over-enthusiastic clipboard managers. */ |
| 844 | if (!between) | 844 | if (!between) |
| 845 | kbd_fetch_ptr = X_NEXT_KBD_EVENT (event); | 845 | { |
| 846 | kbd_fetch_ptr = X_NEXT_KBD_EVENT (event); | ||
| 847 | |||
| 848 | /* `detect_input_pending' will then recompute | ||
| 849 | whether or not pending input events exist. */ | ||
| 850 | input_pending = false; | ||
| 851 | } | ||
| 846 | } | 852 | } |
| 847 | else | 853 | else |
| 848 | between = true; | 854 | between = true; |