Mercurial > emacs
changeset 83572:244d6216c056
(Fx_popup_menu): Use terminal specific mouse_position_hook.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Tue, 15 May 2007 23:02:24 +0000 |
parents | ca1c27e2707e |
children | b77b83741308 |
files | src/w32menu.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32menu.c Tue May 15 23:01:38 2007 +0000 +++ b/src/w32menu.c Tue May 15 23:02:24 2007 +0000 @@ -20,14 +20,15 @@ Boston, MA 02110-1301, USA. */ #include <config.h> + #include <signal.h> - #include <stdio.h> + #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 @@ 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);