aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorJason Rumney2001-12-01 11:09:33 +0000
committerJason Rumney2001-12-01 11:09:33 +0000
commit1576fbfa1d5e11934b94eb3fec634d08e2c87ed6 (patch)
tree1290911e2e0068fa0bffc3a28fccb19ee4f19333 /src/w32term.c
parente4a9e6a8699b67a7be4a5b8f914d5a3544869da8 (diff)
downloademacs-1576fbfa1d5e11934b94eb3fec634d08e2c87ed6.tar.gz
emacs-1576fbfa1d5e11934b94eb3fec634d08e2c87ed6.zip
(w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
and mouse face.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c30
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