aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c10
-rw-r--r--src/xterm.c6
2 files changed, 6 insertions, 10 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 9c41fa91351..2c6edc68f99 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -6589,14 +6589,6 @@ read_avail_input (expected)
6589 int err; 6589 int err;
6590 struct display *d; 6590 struct display *d;
6591 6591
6592 if (interrupt_input_blocked)
6593 {
6594 interrupt_input_pending = 1;
6595 return -1;
6596 }
6597
6598 BLOCK_INPUT;
6599
6600 /* Loop through the available displays, and call their input hooks. */ 6592 /* Loop through the available displays, and call their input hooks. */
6601 d = display_list; 6593 d = display_list;
6602 while (d) 6594 while (d)
@@ -6669,8 +6661,6 @@ read_avail_input (expected)
6669 if (err && !nread) 6661 if (err && !nread)
6670 nread = -1; 6662 nread = -1;
6671 6663
6672 UNBLOCK_INPUT;
6673
6674 return nread; 6664 return nread;
6675} 6665}
6676 6666
diff --git a/src/xterm.c b/src/xterm.c
index 321e9fa3f2f..90356b2ed2f 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7209,6 +7209,12 @@ XTread_socket (display, bufp, numchars, expected)
7209 { 7209 {
7210 int finish; 7210 int finish;
7211 7211
7212 if (numchars <= 1)
7213 {
7214 /* The input buffer is full; read the rest next time. */
7215 break;
7216 }
7217
7212 XNextEvent (dpyinfo->display, &event); 7218 XNextEvent (dpyinfo->display, &event);
7213 7219
7214#ifdef HAVE_X_I18N 7220#ifdef HAVE_X_I18N