(wait_reading_process_input): If wait_for_cell,
authorRichard M. Stallman <rms@gnu.org>
Wed, 27 Jul 1994 00:12:59 +0000 (00:12 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 27 Jul 1994 00:12:59 +0000 (00:12 +0000)
do check for keyboard input and handle it.

src/process.c

index 43d569b..e05c260 100644 (file)
@@ -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,