[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 937a011352: Clear mouse face during drag-and-drop
From: |
Po Lu |
Subject: |
master 937a011352: Clear mouse face during drag-and-drop |
Date: |
Sat, 4 Jun 2022 03:19:22 -0400 (EDT) |
branch: master
commit 937a011352e4bc24c40a1eab1c4b4d7f8aba7c7b
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
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 fe7cab7258..edfb89070f 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 937a011352: Clear mouse face during drag-and-drop,
Po Lu <=