From 937a011352e4bc24c40a1eab1c4b4d7f8aba7c7b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 4 Jun 2022 15:17:50 +0800 Subject: [PATCH] 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. --- src/xterm.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 -- 2.39.2