From 7ab7006cf6efd2a3867b6a49138bddf01a6b79ac Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Tue, 15 May 2007 23:02:24 +0000 Subject: [PATCH] (Fx_popup_menu): Use terminal specific mouse_position_hook. --- src/w32menu.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/w32menu.c b/src/w32menu.c index ba29c6ae433..5f507ad76c0 100644 --- a/src/w32menu.c +++ b/src/w32menu.c @@ -20,14 +20,15 @@ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include -#include +#include #include + #include "lisp.h" -#include "termhooks.h" #include "keyboard.h" #include "keymap.h" #include "frame.h" +#include "termhooks.h" #include "window.h" #include "blockinput.h" #include "buffer.h" @@ -673,8 +674,8 @@ cached information about equivalent key sequences. */) enum scroll_bar_part part; unsigned long time; - if (mouse_position_hook) - (*mouse_position_hook) (&new_f, 1, &bar_window, + if (FRAME_TERMINAL (new_f)->mouse_position_hook) + (*FRAME_TERMINAL (new_f)->mouse_position_hook) (&new_f, 1, &bar_window, &part, &x, &y, &time); if (new_f != 0) XSETFRAME (window, new_f); -- 2.39.5