summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-06-25 20:07:35 +0800
committerPo Lu <luangruo@yahoo.com>2022-06-25 20:08:52 +0800
commitbdf495f25fe38a151b96c4061fc0dffc121fcc14 (patch)
tree09d0ed7f42eb4db6e0e5232cb3f591cb16958fe9 /src
parent3d3029353b95360e374fc673339b7c8cd5568db1 (diff)
downloademacs-bdf495f25fe38a151b96c4061fc0dffc121fcc14.tar.gz
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.c8
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)
avoids exhausting the keyboard buffer with some
over-enthusiastic clipboard managers. */
if (!between)
- kbd_fetch_ptr = X_NEXT_KBD_EVENT (event);
+ {
+ kbd_fetch_ptr = X_NEXT_KBD_EVENT (event);
+
+ /* `detect_input_pending' will then recompute
+ whether or not pending input events exist. */
+ input_pending = false;
+ }
}
else
between = true;