diff options
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 483676227ea..29d4dd453cb 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7108,7 +7108,8 @@ x_dispatch_event (XEvent *event, Display *display) | |||
| 7108 | 7108 | ||
| 7109 | 7109 | ||
| 7110 | /* Read events coming from the X server. | 7110 | /* Read events coming from the X server. |
| 7111 | This routine is called by the SIGIO handler. | 7111 | This routine is called by the SIGIO handler only if SYNC_INPUT is |
| 7112 | not defined. | ||
| 7112 | We return as soon as there are no more events to be read. | 7113 | We return as soon as there are no more events to be read. |
| 7113 | 7114 | ||
| 7114 | We return the number of characters stored into the buffer, | 7115 | We return the number of characters stored into the buffer, |
| @@ -7142,7 +7143,9 @@ XTread_socket (struct terminal *terminal, int expected, struct input_event *hold | |||
| 7142 | /* So people can tell when we have read the available input. */ | 7143 | /* So people can tell when we have read the available input. */ |
| 7143 | input_signal_count++; | 7144 | input_signal_count++; |
| 7144 | 7145 | ||
| 7146 | #ifndef SYNC_INPUT | ||
| 7145 | ++handling_signal; | 7147 | ++handling_signal; |
| 7148 | #endif | ||
| 7146 | 7149 | ||
| 7147 | /* For debugging, this gives a way to fake an I/O error. */ | 7150 | /* For debugging, this gives a way to fake an I/O error. */ |
| 7148 | if (terminal->display_info.x == XTread_socket_fake_io_error) | 7151 | if (terminal->display_info.x == XTread_socket_fake_io_error) |
| @@ -7232,7 +7235,9 @@ XTread_socket (struct terminal *terminal, int expected, struct input_event *hold | |||
| 7232 | pending_autoraise_frame = 0; | 7235 | pending_autoraise_frame = 0; |
| 7233 | } | 7236 | } |
| 7234 | 7237 | ||
| 7238 | #ifndef SYNC_INPUT | ||
| 7235 | --handling_signal; | 7239 | --handling_signal; |
| 7240 | #endif | ||
| 7236 | UNBLOCK_INPUT; | 7241 | UNBLOCK_INPUT; |
| 7237 | 7242 | ||
| 7238 | return count; | 7243 | return count; |