is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
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.
&& 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;
}