emacs-diffs
[Top][All Lists]
Advanced

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

master 6692df0279: Fix timestamp specified in wheel movement XDND events


From: Po Lu
Subject: master 6692df0279: Fix timestamp specified in wheel movement XDND events
Date: Mon, 18 Jul 2022 21:42:31 -0400 (EDT)

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

    Fix timestamp specified in wheel movement XDND events
    
    * 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 | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/xterm.c b/src/xterm.c
index 88028948ba..c9acc9055d 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -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;
                    }



reply via email to

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