comparison src/xterm.c @ 8485:6e4b40c80021

(XTread_socket): Don't test X_IO_BUG; make that code unconditional. (x_noop_count, x_term_init): Likewise.
author Richard M. Stallman <rms@gnu.org>
date Mon, 08 Aug 1994 10:13:24 +0000
parents 85bcdaceeebc
children e52f4cbff616
comparison
equal deleted inserted replaced
8484:3aa323481f5a 8485:6e4b40c80021
343 0x0005, 0x000a, 0x0005, 0x000a}; 343 0x0005, 0x000a, 0x0005, 0x000a};
344 344
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. */
354 352
355 static WINDOWINFO_TYPE windowinfo; 353 static WINDOWINFO_TYPE windowinfo;
4388 #endif /* USE_X_TOOLKIT */ 4386 #endif /* USE_X_TOOLKIT */
4389 break; 4387 break;
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 */
4401 x_noop_count++; 4398 x_noop_count++;
4402 if (x_noop_count >= 100) 4399 if (x_noop_count >= 100)
4403 { 4400 {
4404 x_noop_count=0; 4401 x_noop_count=0;
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
4412 command makes select return but gives nothing to read. 4408 command makes select return but gives nothing to read.
4413 We'll have to hope that the bug that this tried to fix 4409 We'll have to hope that the bug that this tried to fix
6217 #ifdef F_SETOWN 6213 #ifdef F_SETOWN
6218 extern int old_fcntl_owner; 6214 extern int old_fcntl_owner;
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
6228 #ifdef USE_X_TOOLKIT 6222 #ifdef USE_X_TOOLKIT
6229 argv = (char **) XtMalloc (7 * sizeof (char *)); 6223 argv = (char **) XtMalloc (7 * sizeof (char *));