diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c index af09b7b8554..19e51266dac 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -8916,6 +8916,36 @@ w32_read_socket (sd, bufp, numchars, expected) | |||
| 8916 | check_visibility = 1; | 8916 | check_visibility = 1; |
| 8917 | break; | 8917 | break; |
| 8918 | 8918 | ||
| 8919 | case WM_MOUSELEAVE: | ||
| 8920 | f = x_any_window_to_frame (dpyinfo, msg.msg.hwnd); | ||
| 8921 | if (f) | ||
| 8922 | { | ||
| 8923 | if (f == dpyinfo->mouse_face_mouse_frame) | ||
| 8924 | { | ||
| 8925 | /* If we move outside the frame, then we're | ||
| 8926 | certainly no longer on any text in the frame. */ | ||
| 8927 | clear_mouse_face (dpyinfo); | ||
| 8928 | dpyinfo->mouse_face_mouse_frame = 0; | ||
| 8929 | } | ||
| 8930 | |||
| 8931 | /* Generate a nil HELP_EVENT to cancel a help-echo. | ||
| 8932 | Do it only if there's something to cancel. | ||
| 8933 | Otherwise, the startup message is cleared when | ||
| 8934 | the mouse leaves the frame. */ | ||
| 8935 | if (any_help_event_p) | ||
| 8936 | { | ||
| 8937 | Lisp_Object frame; | ||
| 8938 | int n; | ||
| 8939 | |||
| 8940 | XSETFRAME (frame, f); | ||
| 8941 | help_echo = Qnil; | ||
| 8942 | n = gen_help_event (bufp, numchars, | ||
| 8943 | Qnil, frame, Qnil, Qnil, 0); | ||
| 8944 | bufp += n, count += n, numchars -= n; | ||
| 8945 | } | ||
| 8946 | } | ||
| 8947 | break; | ||
| 8948 | |||
| 8919 | case WM_SETFOCUS: | 8949 | case WM_SETFOCUS: |
| 8920 | f = x_any_window_to_frame (dpyinfo, msg.msg.hwnd); | 8950 | f = x_any_window_to_frame (dpyinfo, msg.msg.hwnd); |
| 8921 | 8951 | ||