aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-04-29 04:20:12 +0000
committerKarl Heuer1995-04-29 04:20:12 +0000
commit5a8d99e0e7321dd1a5340b840f5adca9c529a664 (patch)
tree9059c199ecc5a339d8ba0457f961d10ddd83f1c7 /src
parent72de3c001f0aa194129830cd5efc162ea01b6333 (diff)
downloademacs-5a8d99e0e7321dd1a5340b840f5adca9c529a664.tar.gz
emacs-5a8d99e0e7321dd1a5340b840f5adca9c529a664.zip
(read_char, read_char_x_menu_prompt): Exclude
menu-bar clicks when processing mouse clicks.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index dd143e1635d..d960e1b6ee8 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1820,7 +1820,9 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
1820 does not pass on any keymaps. */ 1820 does not pass on any keymaps. */
1821 1821
1822 if (nmaps > 0 && INTERACTIVE 1822 if (nmaps > 0 && INTERACTIVE
1823 && !NILP (prev_event) && EVENT_HAS_PARAMETERS (prev_event) 1823 && !NILP (prev_event)
1824 && EVENT_HAS_PARAMETERS (prev_event)
1825 && !EQ (XCONS (prev_event)->car, Qmenu_bar)
1824 /* Don't bring up a menu if we already have another event. */ 1826 /* Don't bring up a menu if we already have another event. */
1825 && NILP (Vunread_command_events) 1827 && NILP (Vunread_command_events)
1826 && unread_command_char < 0) 1828 && unread_command_char < 0)
@@ -4622,7 +4624,8 @@ read_char_x_menu_prompt (nmaps, maps, prev_event, used_mouse_menu)
4622#if (defined (HAVE_X_WINDOWS) && defined (HAVE_X_MENU)) || defined (MSDOS) 4624#if (defined (HAVE_X_WINDOWS) && defined (HAVE_X_MENU)) || defined (MSDOS)
4623 /* If we got to this point via a mouse click, 4625 /* If we got to this point via a mouse click,
4624 use a real menu for mouse selection. */ 4626 use a real menu for mouse selection. */
4625 if (EVENT_HAS_PARAMETERS (prev_event)) 4627 if (EVENT_HAS_PARAMETERS (prev_event)
4628 && !EQ (XCONS (prev_event)->car, Qmenu_bar))
4626 { 4629 {
4627 /* Display the menu and get the selection. */ 4630 /* Display the menu and get the selection. */
4628 Lisp_Object *realmaps 4631 Lisp_Object *realmaps