]> git.eshelyaron.com Git - emacs.git/commitdiff
Clear mouse face during drag-and-drop
authorPo Lu <luangruo@yahoo.com>
Sat, 4 Jun 2022 07:17:50 +0000 (15:17 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 4 Jun 2022 07:19:12 +0000 (15:19 +0800)
* src/xterm.c (handle_one_xevent): Clear mouse face during drag
and drop, since note_mouse_highlight isn't called.

src/xterm.c

index fe7cab7258e3f46b2ea0f2e006230998241d0bb4..edfb89070ff3d30463d401e808d677306e03d79b 100644 (file)
@@ -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