From e2d96ffa6a920684e67f013b5e5eae8c2379bc84 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sun, 27 Feb 2022 14:56:34 +0800 Subject: [PATCH] * src/xterm.c (handle_one_xevent): Translate motion events on Motif. --- src/xterm.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 37d193cc921..2656b30472d 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -11614,6 +11614,26 @@ handle_one_xevent (struct x_display_info *dpyinfo, ev.window = xev->event; ev.time = xev->time; +#ifdef USE_MOTIF + use_copy = true; + + copy.xmotion.type = MotionNotify; + copy.xmotion.serial = xev->serial; + copy.xmotion.send_event = xev->send_event; + copy.xmotion.display = dpyinfo->display; + copy.xmotion.window = xev->event; + copy.xmotion.root = xev->root; + copy.xmotion.subwindow = xev->child; + copy.xmotion.time = xev->time; + copy.xmotion.x = lrint (xev->event_x); + copy.xmotion.y = lrint (xev->event_y); + copy.xmotion.x_root = lrint (xev->root_x); + copy.xmotion.y_root = lrint (xev->root_y); + copy.xmotion.state = 0; + copy.xmotion.is_hint = False; + copy.xmotion.same_screen = True; +#endif + previous_help_echo_string = help_echo_string; help_echo_string = Qnil; -- 2.39.5