Mercurial > emacs
changeset 44708:b4274ec69fa3
(note_mode_line_or_margin_highlight): Remove unused variables `row', `i'
and `area'.
(XTread_socket) <KeyPress>: Pass KeyPress events when in menu to toolkit
library.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Fri, 19 Apr 2002 18:59:02 +0000 |
parents | 3444517c6483 |
children | e673f42e092e |
files | src/xterm.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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))