changeset 4320:4055472194b5

(wait_reading_process_input): Undo last two changes: when wait_for_cell, do not check the keyboard.
author Richard M. Stallman <rms@gnu.org>
date Wed, 28 Jul 1993 08:19:30 +0000
parents 43a327b94579
children 2eb6fe350374
files src/process.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Wed Jul 28 08:18:09 1993 +0000
+++ b/src/process.c	Wed Jul 28 08:19:30 1993 +0000
@@ -1812,7 +1812,10 @@
       /* Wait till there is something to do */
 
       Available = input_wait_mask;
-      if (! XINT (read_kbd) && wait_for_cell == 0)
+      /* 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))
 	FD_CLR (0, &Available);
 
       /* If frame size has changed or the window is newly mapped,
@@ -1891,7 +1894,9 @@
       /* If there is any, return immediately
 	 to give it higher priority than subprocesses */
 
-      if ((XINT (read_kbd) || wait_for_cell)
+      /* We used to do his if wait_for_cell,
+	 but that caused infinite recursion in selection request events.  */
+      if ((XINT (read_kbd))
 	  && detect_input_pending ())
 	{
 	  swallow_events ();