]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix setting last user time during drag-and-drop
authorPo Lu <luangruo@yahoo.com>
Sun, 19 Jun 2022 12:56:46 +0000 (20:56 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 19 Jun 2022 12:57:13 +0000 (20:57 +0800)
* 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

index 1af0f41937df3e05a2d5ab0892e3faebcfcfeed8..9a31f9ea094e4c9daa444645c306f8ec1152e819 100644 (file)
@@ -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)