comparison src/xterm.c @ 83060:70063cb10ca9

Check for numchars > 0 in handle_one_xevent, not 1. src/xterm.c (handle_one_xevent): Check for numchars > 0 in the KeyPress case, not 1. (XTread_socket): Revert previous change. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-100
author Karoly Lorentey <lorentey@elte.hu>
date Thu, 26 Feb 2004 00:37:31 +0000
parents af4a10a1bd55
children 8cfc953cfadf
comparison
equal deleted inserted replaced
83059:af4a10a1bd55 83060:70063cb10ca9
6380 if (compose_status.chars_matched > 0 && nbytes == 0) 6380 if (compose_status.chars_matched > 0 && nbytes == 0)
6381 break; 6381 break;
6382 6382
6383 orig_keysym = keysym; 6383 orig_keysym = keysym;
6384 6384
6385 if (numchars > 1) 6385 if (numchars > 0)
6386 { 6386 {
6387 Lisp_Object c; 6387 Lisp_Object c;
6388 6388
6389 /* First deal with keysyms which have defined 6389 /* First deal with keysyms which have defined
6390 translations to characters. */ 6390 translations to characters. */
7206 7206
7207 #ifndef USE_GTK 7207 #ifndef USE_GTK
7208 while (XPending (dpyinfo->display)) 7208 while (XPending (dpyinfo->display))
7209 { 7209 {
7210 int finish; 7210 int finish;
7211
7212 if (numchars <= 1)
7213 {
7214 /* The input buffer is full; read the rest next time. */
7215 break;
7216 }
7217 7211
7218 XNextEvent (dpyinfo->display, &event); 7212 XNextEvent (dpyinfo->display, &event);
7219 7213
7220 #ifdef HAVE_X_I18N 7214 #ifdef HAVE_X_I18N
7221 /* Filter events for the current X input method. */ 7215 /* Filter events for the current X input method. */