From dcb7b9f5ff853bfb18c0a27af47507d9ecd7be64 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 19 Jun 2022 20:56:46 +0800 Subject: [PATCH] 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. --- src/xterm.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- 2.39.2