Support help-echo and tooltip messages on w32 text-mode terminals.

src/w32inevt.c (do_mouse_event): If help_echo changed, call gen_help_event
 to produce help-echo message in the echo area.
This commit is contained in:
Eli Zaretskii 2012-05-26 14:58:19 +03:00
parent f12fdf0237
commit c4aeb92ab4
2 changed files with 12 additions and 2 deletions

View file

@ -1,6 +1,8 @@
2012-05-26 Eli Zaretskii <eliz@gnu.org>
* w32inevt.c (do_mouse_event): Support mouse-autoselect-window.
If help_echo changed, call gen_help_event to produce help-echo
message in the echo area.
2012-05-26 Eli Zaretskii <eliz@gnu.org>

View file

@ -621,8 +621,6 @@ do_mouse_event (MOUSE_EVENT_RECORD *event,
clear_mouse_face (hlinfo);
}
note_mouse_highlight (f, mx, my);
/* Generate SELECT_WINDOW_EVENTs when needed. */
if (!NILP (Vmouse_autoselect_window))
{
@ -649,6 +647,16 @@ do_mouse_event (MOUSE_EVENT_RECORD *event,
}
else
last_mouse_window = Qnil;
previous_help_echo_string = help_echo_string;
help_echo_string = help_echo_object = help_echo_window = Qnil;
help_echo_pos = -1;
note_mouse_highlight (f, mx, my);
/* If the contents of the global variable help_echo has
changed (inside note_mouse_highlight), generate a HELP_EVENT. */
if (!NILP (help_echo_string) || !NILP (previous_help_echo_string))
gen_help_event (help_echo_string, selected_frame, help_echo_window,
help_echo_object, help_echo_pos);
}
return 0;
}