diff options
| author | Po Lu | 2022-06-19 20:56:46 +0800 |
|---|---|---|
| committer | Po Lu | 2022-06-19 20:57:13 +0800 |
| commit | dcb7b9f5ff853bfb18c0a27af47507d9ecd7be64 (patch) | |
| tree | 0847492a22138c819ecfd78836c24116becc1dfa /src | |
| parent | e611dbcc7c815d321199deb380df333737bab06a (diff) | |
| download | emacs-dcb7b9f5ff853bfb18c0a27af47507d9ecd7be64.tar.gz 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.
Diffstat (limited to 'src')
| -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, | |||
| 18662 | 18662 | ||
| 18663 | if (event->type == ButtonPress) | 18663 | if (event->type == ButtonPress) |
| 18664 | { | 18664 | { |
| 18665 | x_display_set_last_user_time (dpyinfo, event->xbutton.time, | ||
| 18666 | event->xbutton.send_event); | ||
| 18667 | |||
| 18665 | dpyinfo->grabbed |= (1 << event->xbutton.button); | 18668 | dpyinfo->grabbed |= (1 << event->xbutton.button); |
| 18666 | dpyinfo->last_mouse_frame = f; | 18669 | dpyinfo->last_mouse_frame = f; |
| 18667 | if (f && !tab_bar_p) | 18670 | if (f && !tab_bar_p) |
| @@ -20059,6 +20062,9 @@ handle_one_xevent (struct x_display_info *dpyinfo, | |||
| 20059 | #endif | 20062 | #endif |
| 20060 | if (xev->evtype == XI_ButtonPress) | 20063 | if (xev->evtype == XI_ButtonPress) |
| 20061 | { | 20064 | { |
| 20065 | x_display_set_last_user_time (dpyinfo, xev->time, | ||
| 20066 | xev->send_event); | ||
| 20067 | |||
| 20062 | dpyinfo->grabbed |= (1 << xev->detail); | 20068 | dpyinfo->grabbed |= (1 << xev->detail); |
| 20063 | dpyinfo->last_mouse_frame = f; | 20069 | dpyinfo->last_mouse_frame = f; |
| 20064 | if (f && !tab_bar_p) | 20070 | if (f && !tab_bar_p) |