diff options
| author | Richard M. Stallman | 1994-08-08 10:13:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-08-08 10:13:24 +0000 |
| commit | 9a5196d062e9fdb40484c918d0b539d87aef98b4 (patch) | |
| tree | b6f3d5c78f46cbd255fe53c9b93416c8747fea37 /src | |
| parent | 5aba97f2529e894a6e2ae4ce7cb106eebc04aeed (diff) | |
| download | emacs-9a5196d062e9fdb40484c918d0b539d87aef98b4.tar.gz emacs-9a5196d062e9fdb40484c918d0b539d87aef98b4.zip | |
(XTread_socket): Don't test X_IO_BUG; make that code unconditional.
(x_noop_count, x_term_init): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/xterm.c b/src/xterm.c index 09c05dbf297..b7427b445ec 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -345,9 +345,7 @@ static short grey_bits[] = { | |||
| 345 | static Pixmap GreyPixmap = 0; | 345 | static Pixmap GreyPixmap = 0; |
| 346 | #endif /* ! defined (HAVE_X11) */ | 346 | #endif /* ! defined (HAVE_X11) */ |
| 347 | 347 | ||
| 348 | #ifdef X_IO_BUG | ||
| 349 | static int x_noop_count; | 348 | static int x_noop_count; |
| 350 | #endif | ||
| 351 | 349 | ||
| 352 | 350 | ||
| 353 | /* From time to time we get info on an Emacs window, here. */ | 351 | /* From time to time we get info on an Emacs window, here. */ |
| @@ -4390,11 +4388,10 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 4390 | } | 4388 | } |
| 4391 | } | 4389 | } |
| 4392 | 4390 | ||
| 4393 | #ifdef X_IO_BUG | 4391 | /* On some systems, an X bug causes Emacs to get no more events |
| 4392 | when the window is destroyed. Detect that. (1994.) */ | ||
| 4394 | if (! event_found) | 4393 | if (! event_found) |
| 4395 | { | 4394 | { |
| 4396 | /* On some systems, an X bug causes Emacs to get no more events | ||
| 4397 | when the window is destroyed. Detect that. (1994.) */ | ||
| 4398 | /* Emacs and the X Server eats up CPU time if XNoOp is done every time. | 4395 | /* Emacs and the X Server eats up CPU time if XNoOp is done every time. |
| 4399 | One XNOOP in 100 loops will make Emacs terminate. | 4396 | One XNOOP in 100 loops will make Emacs terminate. |
| 4400 | B. Bretthauer, 1994 */ | 4397 | B. Bretthauer, 1994 */ |
| @@ -4405,7 +4402,6 @@ XTread_socket (sd, bufp, numchars, waitp, expected) | |||
| 4405 | XNoOp (x_current_display); | 4402 | XNoOp (x_current_display); |
| 4406 | } | 4403 | } |
| 4407 | } | 4404 | } |
| 4408 | #endif /* X_IO_BUG */ | ||
| 4409 | 4405 | ||
| 4410 | #if 0 /* This fails for serial-line connections to the X server, | 4406 | #if 0 /* This fails for serial-line connections to the X server, |
| 4411 | because the characters arrive one by one, and a partial | 4407 | because the characters arrive one by one, and a partial |
| @@ -6219,9 +6215,7 @@ x_term_init (display_name, xrm_option, resource_name) | |||
| 6219 | #endif /* ! defined (F_SETOWN) */ | 6215 | #endif /* ! defined (F_SETOWN) */ |
| 6220 | #endif /* F_SETOWN_BUG */ | 6216 | #endif /* F_SETOWN_BUG */ |
| 6221 | 6217 | ||
| 6222 | #ifdef X_IO_BUG | ||
| 6223 | x_noop_count = 0; | 6218 | x_noop_count = 0; |
| 6224 | #endif | ||
| 6225 | 6219 | ||
| 6226 | x_focus_frame = x_highlight_frame = 0; | 6220 | x_focus_frame = x_highlight_frame = 0; |
| 6227 | 6221 | ||