comparison src/xterm.c @ 15629:909056c81fcf

Undo previous change. (XTread_socket): Better way to avoid sending toolkit-specific events to Emacs.
author Karl Heuer <kwzh@gnu.org>
date Sun, 07 Jul 1996 22:58:51 +0000
parents 16519aa28929
children 2ca62609dd67
comparison
equal deleted inserted replaced
15628:f74c79dcaf8d 15629:909056c81fcf
3614 /* al%imercury@uunet.uu.net says that making this 81 instead of 3614 /* al%imercury@uunet.uu.net says that making this 81 instead of
3615 80 fixed a bug whereby meta chars made his Emacs hang. */ 3615 80 fixed a bug whereby meta chars made his Emacs hang. */
3616 unsigned char copy_buffer[81]; 3616 unsigned char copy_buffer[81];
3617 int modifiers; 3617 int modifiers;
3618 3618
3619 if (lw_window_is_in_menubar (event.xkey.window,
3620 f->output_data.x->menubar_widget
3621 ))
3622 {
3623 XtDispatchEvent (&event);
3624 break;
3625 }
3626
3619 event.xkey.state 3627 event.xkey.state
3620 |= x_emacs_to_x_modifiers (FRAME_X_DISPLAY_INFO (f), 3628 |= x_emacs_to_x_modifiers (FRAME_X_DISPLAY_INFO (f),
3621 extra_keyboard_modifiers); 3629 extra_keyboard_modifiers);
3622 modifiers = event.xkey.state; 3630 modifiers = event.xkey.state;
3623 3631
3649 #else 3657 #else
3650 nbytes = XLookupString (&event.xkey, copy_buffer, 3658 nbytes = XLookupString (&event.xkey, copy_buffer,
3651 80, &keysym, &compose_status); 3659 80, &keysym, &compose_status);
3652 #endif 3660 #endif
3653 3661
3654 #ifdef USE_X_TOOLKIT
3655 if (lw_toolkit_related_event_p (&event))
3656 {
3657 XtDispatchEvent (&event);
3658 break;
3659 }
3660 #endif
3661 orig_keysym = keysym; 3662 orig_keysym = keysym;
3662 3663
3663 if (numchars > 1) 3664 if (numchars > 1)
3664 { 3665 {
3665 if (((keysym >= XK_BackSpace && keysym <= XK_Escape) 3666 if (((keysym >= XK_BackSpace && keysym <= XK_Escape)