From: Po Lu Date: Sat, 4 Jun 2022 07:17:50 +0000 (+0800) Subject: Clear mouse face during drag-and-drop X-Git-Tag: emacs-29.0.90~1910^2~247 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=937a011352e4bc24c40a1eab1c4b4d7f8aba7c7b;p=emacs.git Clear mouse face during drag-and-drop * src/xterm.c (handle_one_xevent): Clear mouse face during drag and drop, since note_mouse_highlight isn't called. --- diff --git a/src/xterm.c b/src/xterm.c index fe7cab7258e..edfb89070ff 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -17022,6 +17022,10 @@ handle_one_xevent (struct x_display_info *dpyinfo, xm_top_level_enter_message emsg; xm_drag_motion_message dmsg; + /* Always clear mouse face. */ + clear_mouse_face (hlinfo); + hlinfo->mouse_face_hidden = true; + /* Sometimes the drag-and-drop operation starts with the pointer of a frame invisible due to input. Since motion events are ignored during that, make the pointer @@ -18657,6 +18661,10 @@ handle_one_xevent (struct x_display_info *dpyinfo, Window target, toplevel; int target_proto, motif_style; + /* Always clear mouse face. */ + clear_mouse_face (hlinfo); + hlinfo->mouse_face_hidden = true; + /* Sometimes the drag-and-drop operation starts with the pointer of a frame invisible due to input. Since motion events are ignored during that, make the pointer