From 6692df0279782a9956acf4f97a421d8775cf32a6 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Tue, 19 Jul 2022 09:41:36 +0800 Subject: [PATCH] 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 88028948ba3..c9acc9055d5 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; } -- 2.39.5