]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix timestamp specified in wheel movement XDND events
authorPo Lu <luangruo@yahoo.com>
Tue, 19 Jul 2022 01:41:36 +0000 (09:41 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 19 Jul 2022 01:41:36 +0000 (09:41 +0800)
* src/xterm.c (handle_one_xevent): Use the time of the wheel
event in XDND events sent in response to wheel movement.

src/xterm.c

index 88028948ba3cc492c2fcc5a1ac08945320682f1d..c9acc9055d5bfe2d4eb405e427b374a884173bea 100644 (file)
@@ -19020,7 +19020,7 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                                       x_dnd_last_protocol_version,
                                       event->xbutton.x_root,
                                       event->xbutton.y_root,
-                                      x_dnd_selection_timestamp,
+                                      event->xbutton.time,
                                       x_dnd_wanted_action,
                                       event->xbutton.button,
                                       event->xbutton.state);
@@ -20424,10 +20424,12 @@ handle_one_xevent (struct x_display_info *dpyinfo,
                                               xev->detail, dnd_state,
                                               xev->time);
                      else
-                       x_dnd_send_position (x_dnd_frame, x_dnd_last_seen_window,
-                                            x_dnd_last_protocol_version, xev->root_x,
-                                            xev->root_y, x_dnd_selection_timestamp,
-                                            x_dnd_wanted_action, xev->detail, dnd_state);
+                       x_dnd_send_position (x_dnd_frame,
+                                            x_dnd_last_seen_window,
+                                            x_dnd_last_protocol_version,
+                                            xev->root_x, xev->root_y,
+                                            xev->time, x_dnd_wanted_action,
+                                            xev->detail, dnd_state);
 
                      goto XI_OTHER;
                    }