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.
This commit is contained in:
Po Lu 2025-12-09 09:48:53 +08:00
parent 6caf598ac4
commit a9018ee498
2 changed files with 3 additions and 4 deletions

View file

@ -6948,9 +6948,8 @@ make_lispy_event (struct input_event *event)
if (!NILP (f->menu_bar_window))
{
x_y_to_hpos_vpos (XWINDOW (f->menu_bar_window), XFIXNUM (x),
XFIXNUM (y), &column, &row, NULL, NULL,
&dummy);
x_y_to_column_row (XWINDOW (f->menu_bar_window), XFIXNUM (x),
XFIXNUM (y), &column, &row);
if (row >= 0 && row < FRAME_MENU_BAR_LINES (f))
{

View file

@ -2447,7 +2447,7 @@ void
x_y_to_column_row (struct window *w, int x, int y, int *column, int *row)
{
int dummy;
x_y_to_hpos_vpos (w, x, y, column, row, &dummy);
x_y_to_hpos_vpos (w, x, y, column, row, NULL, NULL, &dummy);
}
#endif