* 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.
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;