aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c
index d9a4f9d68f6..0f18a3ae9fc 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3582,7 +3582,7 @@ construct_mouse_click (result, event, f)
3582static XMotionEvent last_mouse_motion_event; 3582static XMotionEvent last_mouse_motion_event;
3583static Lisp_Object last_mouse_motion_frame; 3583static Lisp_Object last_mouse_motion_frame;
3584 3584
3585static void 3585static int
3586note_mouse_movement (frame, event) 3586note_mouse_movement (frame, event)
3587 FRAME_PTR frame; 3587 FRAME_PTR frame;
3588 XMotionEvent *event; 3588 XMotionEvent *event;
@@ -3596,10 +3596,11 @@ note_mouse_movement (frame, event)
3596 frame->mouse_moved = 1; 3596 frame->mouse_moved = 1;
3597 last_mouse_scroll_bar = Qnil; 3597 last_mouse_scroll_bar = Qnil;
3598 note_mouse_highlight (frame, -1, -1); 3598 note_mouse_highlight (frame, -1, -1);
3599 return 1;
3599 } 3600 }
3600 3601
3601 /* Has the mouse moved off the glyph it was on at the last sighting? */ 3602 /* Has the mouse moved off the glyph it was on at the last sighting? */
3602 else if (event->x < last_mouse_glyph.x 3603 if (event->x < last_mouse_glyph.x
3603 || event->x >= last_mouse_glyph.x + last_mouse_glyph.width 3604 || event->x >= last_mouse_glyph.x + last_mouse_glyph.width
3604 || event->y < last_mouse_glyph.y 3605 || event->y < last_mouse_glyph.y
3605 || event->y >= last_mouse_glyph.y + last_mouse_glyph.height) 3606 || event->y >= last_mouse_glyph.y + last_mouse_glyph.height)
@@ -3609,7 +3610,10 @@ note_mouse_movement (frame, event)
3609 note_mouse_highlight (frame, event->x, event->y); 3610 note_mouse_highlight (frame, event->x, event->y);
3610 /* Remember which glyph we're now on. */ 3611 /* Remember which glyph we're now on. */
3611 remember_mouse_glyph (frame, event->x, event->y, &last_mouse_glyph); 3612 remember_mouse_glyph (frame, event->x, event->y, &last_mouse_glyph);
3613 return 1;
3612 } 3614 }
3615
3616 return 0;
3613} 3617}
3614 3618
3615 3619
@@ -6483,8 +6487,7 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6483 case MotionNotify: 6487 case MotionNotify:
6484 { 6488 {
6485 previous_help_echo_string = help_echo_string; 6489 previous_help_echo_string = help_echo_string;
6486 help_echo_string = help_echo_object = help_echo_window = Qnil; 6490 help_echo_string = Qnil;
6487 help_echo_pos = -1;
6488 6491
6489 if (dpyinfo->grabbed && last_mouse_frame 6492 if (dpyinfo->grabbed && last_mouse_frame
6490 && FRAME_LIVE_P (last_mouse_frame)) 6493 && FRAME_LIVE_P (last_mouse_frame))
@@ -6523,7 +6526,8 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6523 6526
6524 last_window=window; 6527 last_window=window;
6525 } 6528 }
6526 note_mouse_movement (f, &event.xmotion); 6529 if (!note_mouse_movement (f, &event.xmotion))
6530 help_echo_string = previous_help_echo_string;
6527 } 6531 }
6528 else 6532 else
6529 { 6533 {