aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c5
-rw-r--r--src/xdisp.c2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index b1d523f580c..8ba9acd6ccc 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -6948,9 +6948,8 @@ make_lispy_event (struct input_event *event)
6948 6948
6949 if (!NILP (f->menu_bar_window)) 6949 if (!NILP (f->menu_bar_window))
6950 { 6950 {
6951 x_y_to_hpos_vpos (XWINDOW (f->menu_bar_window), XFIXNUM (x), 6951 x_y_to_column_row (XWINDOW (f->menu_bar_window), XFIXNUM (x),
6952 XFIXNUM (y), &column, &row, NULL, NULL, 6952 XFIXNUM (y), &column, &row);
6953 &dummy);
6954 6953
6955 if (row >= 0 && row < FRAME_MENU_BAR_LINES (f)) 6954 if (row >= 0 && row < FRAME_MENU_BAR_LINES (f))
6956 { 6955 {
diff --git a/src/xdisp.c b/src/xdisp.c
index 233233415d1..06d5481acd3 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -2447,7 +2447,7 @@ void
2447x_y_to_column_row (struct window *w, int x, int y, int *column, int *row) 2447x_y_to_column_row (struct window *w, int x, int y, int *column, int *row)
2448{ 2448{
2449 int dummy; 2449 int dummy;
2450 x_y_to_hpos_vpos (w, x, y, column, row, &dummy); 2450 x_y_to_hpos_vpos (w, x, y, column, row, NULL, NULL, &dummy);
2451} 2451}
2452#endif 2452#endif
2453 2453