summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/process.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/process.c b/src/process.c
index 43d569b201b..e05c2601a6f 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1950,10 +1950,7 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
/* Wait till there is something to do */
Available = input_wait_mask;
- /* We used to have && wait_for_cell == 0
- but that led to lossage handling selection_request events:
- within one, we would start to handle another. */
- if (! XINT (read_kbd))
+ if (! XINT (read_kbd) || wait_for_cell != 0)
FD_CLR (keyboard_descriptor, &Available);
/* If frame size has changed or the window is newly mapped,