]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xterm.c (handle_one_xevent): Translate motion events on Motif.
authorPo Lu <luangruo@yahoo.com>
Sun, 27 Feb 2022 06:56:34 +0000 (14:56 +0800)
committerPo Lu <luangruo@yahoo.com>
Sun, 27 Feb 2022 06:56:34 +0000 (14:56 +0800)
src/xterm.c

index 37d193cc92133dd405fa619614552369e44a0be9..2656b30472da8a39c09a2cedabbf50e82ece5707 100644 (file)
@@ -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;