# HG changeset patch # User Pavel Jank # Date 1019242742 0 # Node ID b4274ec69fa36e14e7788e1815e3de9034dec673 # Parent 3444517c6483db98bcc4fd294798735f68413b52 (note_mode_line_or_margin_highlight): Remove unused variables `row', `i' and `area'. (XTread_socket) : Pass KeyPress events when in menu to toolkit library. diff -r 3444517c6483 -r b4274ec69fa3 src/xterm.c --- a/src/xterm.c Fri Apr 19 18:56:51 2002 +0000 +++ b/src/xterm.c Fri Apr 19 18:59:02 2002 +0000 @@ -6810,8 +6810,7 @@ struct frame *f = XFRAME (w->frame); struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f); Cursor cursor = dpyinfo->vertical_scroll_bar_cursor; - struct glyph_row *row; - int i, area, charpos; + int charpos; Lisp_Object string, help, map, pos; if (portion == 1 || portion == 3) @@ -10406,6 +10405,11 @@ goto OTHER; case KeyPress: + + /* Dispatch KeyPress events when in menu. */ + if (popup_activated_flag) + goto OTHER; + f = x_any_window_to_frame (dpyinfo, event.xkey.window); if (!dpyinfo->mouse_face_hidden && INTEGERP (Vmouse_highlight))