8916 |
check_visibility = 1; |
check_visibility = 1; |
8917 |
break; |
break; |
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 |
|
|
8949 |
case WM_SETFOCUS: |
case WM_SETFOCUS: |
8950 |
f = x_any_window_to_frame (dpyinfo, msg.msg.hwnd); |
f = x_any_window_to_frame (dpyinfo, msg.msg.hwnd); |
8951 |
|
|