emacs-diffs
[Top][All Lists]
Advanced

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

master e2d96ffa6a 2/2: * src/xterm.c (handle_one_xevent): Translate moti


From: Po Lu
Subject: master e2d96ffa6a 2/2: * src/xterm.c (handle_one_xevent): Translate motion events on Motif.
Date: Sun, 27 Feb 2022 01:56:57 -0500 (EST)

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

    * 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 37d193cc92..2656b30472 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;
 



reply via email to

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