diff options
| author | Po Lu | 2022-02-27 14:56:34 +0800 |
|---|---|---|
| committer | Po Lu | 2022-02-27 14:56:34 +0800 |
| commit | e2d96ffa6a920684e67f013b5e5eae8c2379bc84 (patch) | |
| tree | b74ce6cdf785650c0dbee50128232844fa56c138 | |
| parent | 14c80c9db8dd4abf547bfe3e15020fc977e4bdba (diff) | |
| download | emacs-e2d96ffa6a920684e67f013b5e5eae8c2379bc84.tar.gz emacs-e2d96ffa6a920684e67f013b5e5eae8c2379bc84.zip | |
* src/xterm.c (handle_one_xevent): Translate motion events on Motif.
| -rw-r--r-- | src/xterm.c | 20 |
1 files changed, 20 insertions, 0 deletions
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, | |||
| 11614 | ev.window = xev->event; | 11614 | ev.window = xev->event; |
| 11615 | ev.time = xev->time; | 11615 | ev.time = xev->time; |
| 11616 | 11616 | ||
| 11617 | #ifdef USE_MOTIF | ||
| 11618 | use_copy = true; | ||
| 11619 | |||
| 11620 | copy.xmotion.type = MotionNotify; | ||
| 11621 | copy.xmotion.serial = xev->serial; | ||
| 11622 | copy.xmotion.send_event = xev->send_event; | ||
| 11623 | copy.xmotion.display = dpyinfo->display; | ||
| 11624 | copy.xmotion.window = xev->event; | ||
| 11625 | copy.xmotion.root = xev->root; | ||
| 11626 | copy.xmotion.subwindow = xev->child; | ||
| 11627 | copy.xmotion.time = xev->time; | ||
| 11628 | copy.xmotion.x = lrint (xev->event_x); | ||
| 11629 | copy.xmotion.y = lrint (xev->event_y); | ||
| 11630 | copy.xmotion.x_root = lrint (xev->root_x); | ||
| 11631 | copy.xmotion.y_root = lrint (xev->root_y); | ||
| 11632 | copy.xmotion.state = 0; | ||
| 11633 | copy.xmotion.is_hint = False; | ||
| 11634 | copy.xmotion.same_screen = True; | ||
| 11635 | #endif | ||
| 11636 | |||
| 11617 | previous_help_echo_string = help_echo_string; | 11637 | previous_help_echo_string = help_echo_string; |
| 11618 | help_echo_string = Qnil; | 11638 | help_echo_string = Qnil; |
| 11619 | 11639 | ||