From: Po Lu Date: Sun, 27 Feb 2022 06:56:34 +0000 (+0800) Subject: * src/xterm.c (handle_one_xevent): Translate motion events on Motif. X-Git-Tag: emacs-29.0.90~2092 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e2d96ffa6a920684e67f013b5e5eae8c2379bc84;p=emacs.git * src/xterm.c (handle_one_xevent): Translate motion events on Motif. --- 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;