aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-06-04 15:17:50 +0800
committerPo Lu2022-06-04 15:19:12 +0800
commit937a011352e4bc24c40a1eab1c4b4d7f8aba7c7b (patch)
tree8bf83f2b0b5723c97b4858787926825287a6b87f /src
parent3287d4e32efbe6c9490ecd4132f19fa13f4ae1ae (diff)
downloademacs-937a011352e4bc24c40a1eab1c4b4d7f8aba7c7b.tar.gz
emacs-937a011352e4bc24c40a1eab1c4b4d7f8aba7c7b.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c8
1 files changed, 8 insertions, 0 deletions
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,
17022 xm_top_level_enter_message emsg; 17022 xm_top_level_enter_message emsg;
17023 xm_drag_motion_message dmsg; 17023 xm_drag_motion_message dmsg;
17024 17024
17025 /* Always clear mouse face. */
17026 clear_mouse_face (hlinfo);
17027 hlinfo->mouse_face_hidden = true;
17028
17025 /* Sometimes the drag-and-drop operation starts with the 17029 /* Sometimes the drag-and-drop operation starts with the
17026 pointer of a frame invisible due to input. Since 17030 pointer of a frame invisible due to input. Since
17027 motion events are ignored during that, make the pointer 17031 motion events are ignored during that, make the pointer
@@ -18657,6 +18661,10 @@ handle_one_xevent (struct x_display_info *dpyinfo,
18657 Window target, toplevel; 18661 Window target, toplevel;
18658 int target_proto, motif_style; 18662 int target_proto, motif_style;
18659 18663
18664 /* Always clear mouse face. */
18665 clear_mouse_face (hlinfo);
18666 hlinfo->mouse_face_hidden = true;
18667
18660 /* Sometimes the drag-and-drop operation starts with the 18668 /* Sometimes the drag-and-drop operation starts with the
18661 pointer of a frame invisible due to input. Since 18669 pointer of a frame invisible due to input. Since
18662 motion events are ignored during that, make the pointer 18670 motion events are ignored during that, make the pointer