emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master dcb7b9f5ff: Fix setting last user time during drag-and-drop


From: Po Lu
Subject: master dcb7b9f5ff: Fix setting last user time during drag-and-drop
Date: Sun, 19 Jun 2022 08:57:22 -0400 (EDT)

branch: master
commit dcb7b9f5ff853bfb18c0a27af47507d9ecd7be64
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 1af0f41937..9a31f9ea09 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]