aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index 3370a3298cf..643c87d1227 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1812,7 +1812,10 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
1812 /* Wait till there is something to do */ 1812 /* Wait till there is something to do */
1813 1813
1814 Available = input_wait_mask; 1814 Available = input_wait_mask;
1815 if (! XINT (read_kbd) && wait_for_cell == 0) 1815 /* We used to have && wait_for_cell == 0
1816 but that led to lossage handling selection_request events:
1817 within one, we would start to handle another. */
1818 if (! XINT (read_kbd))
1816 FD_CLR (0, &Available); 1819 FD_CLR (0, &Available);
1817 1820
1818 /* If frame size has changed or the window is newly mapped, 1821 /* If frame size has changed or the window is newly mapped,
@@ -1891,7 +1894,9 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
1891 /* If there is any, return immediately 1894 /* If there is any, return immediately
1892 to give it higher priority than subprocesses */ 1895 to give it higher priority than subprocesses */
1893 1896
1894 if ((XINT (read_kbd) || wait_for_cell) 1897 /* We used to do his if wait_for_cell,
1898 but that caused infinite recursion in selection request events. */
1899 if ((XINT (read_kbd))
1895 && detect_input_pending ()) 1900 && detect_input_pending ())
1896 { 1901 {
1897 swallow_events (); 1902 swallow_events ();