mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
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:
parent
6caf598ac4
commit
a9018ee498
2 changed files with 3 additions and 4 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue