aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2025-12-09 09:48:53 +0800
committerPo Lu2025-12-09 09:48:53 +0800
commita9018ee4986e4b01ac837a6430969f7481188960 (patch)
treee1b2f490444f6e553ac2c510dbc5101fbf82a648 /src
parent6caf598ac49b3ed592f22e31307fe71e71490f2b (diff)
downloademacs-a9018ee4986e4b01ac837a6430969f7481188960.tar.gz
emacs-a9018ee4986e4b01ac837a6430969f7481188960.zip
Fix builds without toolkit menu bars
* src/keyboard.c (make_lispy_event): Call x_y_to_column_row when building internal menu bar events. * src/xdisp.c (x_y_to_column_row): Provide DX and DY parameters to x_y_to_column_row.
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