3582 |
static XMotionEvent last_mouse_motion_event; |
static XMotionEvent last_mouse_motion_event; |
3583 |
static Lisp_Object last_mouse_motion_frame; |
static Lisp_Object last_mouse_motion_frame; |
3584 |
|
|
3585 |
static void |
static int |
3586 |
note_mouse_movement (frame, event) |
note_mouse_movement (frame, event) |
3587 |
FRAME_PTR frame; |
FRAME_PTR frame; |
3588 |
XMotionEvent *event; |
XMotionEvent *event; |
3596 |
frame->mouse_moved = 1; |
frame->mouse_moved = 1; |
3597 |
last_mouse_scroll_bar = Qnil; |
last_mouse_scroll_bar = Qnil; |
3598 |
note_mouse_highlight (frame, -1, -1); |
note_mouse_highlight (frame, -1, -1); |
3599 |
|
return 1; |
3600 |
} |
} |
3601 |
|
|
3602 |
/* Has the mouse moved off the glyph it was on at the last sighting? */ |
/* Has the mouse moved off the glyph it was on at the last sighting? */ |
3603 |
else if (event->x < last_mouse_glyph.x |
if (event->x < last_mouse_glyph.x |
3604 |
|| event->x >= last_mouse_glyph.x + last_mouse_glyph.width |
|| event->x >= last_mouse_glyph.x + last_mouse_glyph.width |
3605 |
|| event->y < last_mouse_glyph.y |
|| event->y < last_mouse_glyph.y |
3606 |
|| event->y >= last_mouse_glyph.y + last_mouse_glyph.height) |
|| event->y >= last_mouse_glyph.y + last_mouse_glyph.height) |
3610 |
note_mouse_highlight (frame, event->x, event->y); |
note_mouse_highlight (frame, event->x, event->y); |
3611 |
/* Remember which glyph we're now on. */ |
/* Remember which glyph we're now on. */ |
3612 |
remember_mouse_glyph (frame, event->x, event->y, &last_mouse_glyph); |
remember_mouse_glyph (frame, event->x, event->y, &last_mouse_glyph); |
3613 |
|
return 1; |
3614 |
} |
} |
3615 |
|
|
3616 |
|
return 0; |
3617 |
} |
} |
3618 |
|
|
3619 |
|
|
6487 |
case MotionNotify: |
case MotionNotify: |
6488 |
{ |
{ |
6489 |
previous_help_echo_string = help_echo_string; |
previous_help_echo_string = help_echo_string; |
6490 |
help_echo_string = help_echo_object = help_echo_window = Qnil; |
help_echo_string = Qnil; |
|
help_echo_pos = -1; |
|
6491 |
|
|
6492 |
if (dpyinfo->grabbed && last_mouse_frame |
if (dpyinfo->grabbed && last_mouse_frame |
6493 |
&& FRAME_LIVE_P (last_mouse_frame)) |
&& FRAME_LIVE_P (last_mouse_frame)) |
6526 |
|
|
6527 |
last_window=window; |
last_window=window; |
6528 |
} |
} |
6529 |
note_mouse_movement (f, &event.xmotion); |
if (!note_mouse_movement (f, &event.xmotion)) |
6530 |
|
help_echo_string = previous_help_echo_string; |
6531 |
} |
} |
6532 |
else |
else |
6533 |
{ |
{ |