Commit d17e49a8 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(read_char): When an event from unread-command-events

is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
parent 7121a5e1
2001-02-20 Gerd Moellmann <gerd@gnu.org>
* keyboard.c (read_char): When an event from unread-command-events
is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
* window.c (Fwindow_end): Handle case that WINDOW's buffer is not
equal to the current buffer.
......
......@@ -2141,6 +2141,12 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
&& NILP (XCDR (c)))
c = XCAR (c);
/* If the queued event is something that used the mouse,
set used_mouse_menu accordingly. */
if (used_mouse_menu
&& (EQ (c, Qtool_bar) || EQ (c, Qmenu_bar)))
*used_mouse_menu = 1;
reread = 1;
goto reread_for_input_method;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment