diff options
author | Po Lu <luangruo@yahoo.com> | 2022-06-19 20:56:46 +0800 |
---|---|---|
committer | Po Lu <luangruo@yahoo.com> | 2022-06-19 20:57:13 +0800 |
commit | dcb7b9f5ff853bfb18c0a27af47507d9ecd7be64 (patch) | |
tree | 0847492a22138c819ecfd78836c24116becc1dfa | |
parent | e611dbcc7c815d321199deb380df333737bab06a (diff) | |
download | emacs-dcb7b9f5ff853bfb18c0a27af47507d9ecd7be64.tar.gz emacs-dcb7b9f5ff853bfb18c0a27af47507d9ecd7be64.tar.bz2 emacs-dcb7b9f5ff853bfb18c0a27af47507d9ecd7be64.zip |
Fix setting last user time during drag-and-drop
* src/xterm.c (handle_one_xevent): Set the last user time if a
button press happens during drag and drop. Mysterious problems
were other seen with sending selections to a clipboard
immediately afterwards on Irix 6.5.
-rw-r--r-- | src/xterm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index 1af0f41937d..9a31f9ea094 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -18662,6 +18662,9 @@ handle_one_xevent (struct x_display_info *dpyinfo, if (event->type == ButtonPress) { + x_display_set_last_user_time (dpyinfo, event->xbutton.time, + event->xbutton.send_event); + dpyinfo->grabbed |= (1 << event->xbutton.button); dpyinfo->last_mouse_frame = f; if (f && !tab_bar_p) @@ -20059,6 +20062,9 @@ handle_one_xevent (struct x_display_info *dpyinfo, #endif if (xev->evtype == XI_ButtonPress) { + x_display_set_last_user_time (dpyinfo, xev->time, + xev->send_event); + dpyinfo->grabbed |= (1 << xev->detail); dpyinfo->last_mouse_frame = f; if (f && !tab_bar_p) |