3204 |
static MSG last_mouse_motion_event; |
static MSG last_mouse_motion_event; |
3205 |
static Lisp_Object last_mouse_motion_frame; |
static Lisp_Object last_mouse_motion_frame; |
3206 |
|
|
3207 |
static void |
static int |
3208 |
note_mouse_movement (frame, msg) |
note_mouse_movement (frame, msg) |
3209 |
FRAME_PTR frame; |
FRAME_PTR frame; |
3210 |
MSG *msg; |
MSG *msg; |
3221 |
frame->mouse_moved = 1; |
frame->mouse_moved = 1; |
3222 |
last_mouse_scroll_bar = Qnil; |
last_mouse_scroll_bar = Qnil; |
3223 |
note_mouse_highlight (frame, -1, -1); |
note_mouse_highlight (frame, -1, -1); |
3224 |
|
return 1; |
3225 |
} |
} |
3226 |
|
|
3227 |
/* 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? */ |
3228 |
else if (mouse_x < last_mouse_glyph.left |
if (mouse_x < last_mouse_glyph.left |
3229 |
|| mouse_x >= last_mouse_glyph.right |
|| mouse_x >= last_mouse_glyph.right |
3230 |
|| mouse_y < last_mouse_glyph.top |
|| mouse_y < last_mouse_glyph.top |
3231 |
|| mouse_y >= last_mouse_glyph.bottom) |
|| mouse_y >= last_mouse_glyph.bottom) |
3232 |
{ |
{ |
3233 |
frame->mouse_moved = 1; |
frame->mouse_moved = 1; |
3234 |
last_mouse_scroll_bar = Qnil; |
last_mouse_scroll_bar = Qnil; |
3238 |
to keep track of the mouse for help_echo and highlighting at |
to keep track of the mouse for help_echo and highlighting at |
3239 |
other times. */ |
other times. */ |
3240 |
remember_mouse_glyph (frame, mouse_x, mouse_y, &last_mouse_glyph); |
remember_mouse_glyph (frame, mouse_x, mouse_y, &last_mouse_glyph); |
3241 |
|
return 1; |
3242 |
} |
} |
3243 |
|
|
3244 |
|
return 0; |
3245 |
} |
} |
3246 |
|
|
3247 |
|
|
4318 |
} |
} |
4319 |
|
|
4320 |
previous_help_echo_string = help_echo_string; |
previous_help_echo_string = help_echo_string; |
4321 |
|
help_echo_string = Qnil; |
4322 |
|
|
4323 |
if (dpyinfo->grabbed && last_mouse_frame |
if (dpyinfo->grabbed && last_mouse_frame |
4324 |
&& FRAME_LIVE_P (last_mouse_frame)) |
&& FRAME_LIVE_P (last_mouse_frame)) |
4357 |
|
|
4358 |
last_window=window; |
last_window=window; |
4359 |
} |
} |
4360 |
note_mouse_movement (f, &msg.msg); |
if (!note_mouse_movement (f, &msg.msg)) |
4361 |
|
help_echo_string = previous_help_echo_string; |
4362 |
} |
} |
4363 |
else |
else |
4364 |
{ |
{ |