mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
(read_char): When an event from unread-command-events
is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
This commit is contained in:
parent
7121a5e168
commit
d17e49a898
2 changed files with 9 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue