diff options
Diffstat (limited to 'src/menu.c')
| -rw-r--r-- | src/menu.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/menu.c b/src/menu.c index 3b1d7402571..990a74b92e3 100644 --- a/src/menu.c +++ b/src/menu.c | |||
| @@ -1127,9 +1127,12 @@ x_popup_menu_1 (Lisp_Object position, Lisp_Object menu) | |||
| 1127 | 1127 | ||
| 1128 | /* Decode the first argument: find the window and the coordinates. */ | 1128 | /* Decode the first argument: find the window and the coordinates. */ |
| 1129 | if (EQ (position, Qt) | 1129 | if (EQ (position, Qt) |
| 1130 | || (CONSP (position) && (EQ (XCAR (position), Qmenu_bar) | 1130 | || (CONSP (position) |
| 1131 | || EQ (XCAR (position), Qtab_bar) | 1131 | && (EQ (XCAR (position), Qmenu_bar) |
| 1132 | || EQ (XCAR (position), Qtool_bar)))) | 1132 | || EQ (XCAR (position), Qtab_bar) |
| 1133 | || (CONSP (XCDR (position)) | ||
| 1134 | && EQ (XCAR (XCDR (position)), Qtab_bar)) | ||
| 1135 | || EQ (XCAR (position), Qtool_bar)))) | ||
| 1133 | { | 1136 | { |
| 1134 | get_current_pos_p = 1; | 1137 | get_current_pos_p = 1; |
| 1135 | } | 1138 | } |