diff options
| author | YAMAMOTO Mitsuharu | 2005-10-14 08:08:37 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2005-10-14 08:08:37 +0000 |
| commit | af1229d96a42d9b12b588e05da3410a3c2b93ec1 (patch) | |
| tree | ba0aac04279bcefb52c74ff16cf20017c7281095 /src | |
| parent | fed91c3814f41f8adc5a9a1c32e5c5580cea8510 (diff) | |
| download | emacs-af1229d96a42d9b12b588e05da3410a3c2b93ec1.tar.gz emacs-af1229d96a42d9b12b588e05da3410a3c2b93ec1.zip | |
(note_mouse_movement, XTread_socket): Apply 2005-10-14 changes for
xterm.c.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macterm.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/macterm.c b/src/macterm.c index e18f3ee48a0..20218b1954a 100644 --- a/src/macterm.c +++ b/src/macterm.c | |||
| @@ -4149,7 +4149,7 @@ x_get_keysym_name (keysym) | |||
| 4149 | static Point last_mouse_motion_position; | 4149 | static Point last_mouse_motion_position; |
| 4150 | static Lisp_Object last_mouse_motion_frame; | 4150 | static Lisp_Object last_mouse_motion_frame; |
| 4151 | 4151 | ||
| 4152 | static void | 4152 | static int |
| 4153 | note_mouse_movement (frame, pos) | 4153 | note_mouse_movement (frame, pos) |
| 4154 | FRAME_PTR frame; | 4154 | FRAME_PTR frame; |
| 4155 | Point *pos; | 4155 | Point *pos; |
| @@ -4180,19 +4180,23 @@ note_mouse_movement (frame, pos) | |||
| 4180 | rif->define_frame_cursor (frame, | 4180 | rif->define_frame_cursor (frame, |
| 4181 | frame->output_data.mac->nontext_cursor); | 4181 | frame->output_data.mac->nontext_cursor); |
| 4182 | } | 4182 | } |
| 4183 | return 1; | ||
| 4183 | } | 4184 | } |
| 4184 | /* Has the mouse moved off the glyph it was on at the last sighting? */ | 4185 | /* Has the mouse moved off the glyph it was on at the last sighting? */ |
| 4185 | else if (pos->h < last_mouse_glyph.left | 4186 | if (pos->h < last_mouse_glyph.left |
| 4186 | || pos->h >= last_mouse_glyph.right | 4187 | || pos->h >= last_mouse_glyph.right |
| 4187 | || pos->v < last_mouse_glyph.top | 4188 | || pos->v < last_mouse_glyph.top |
| 4188 | || pos->v >= last_mouse_glyph.bottom) | 4189 | || pos->v >= last_mouse_glyph.bottom) |
| 4189 | { | 4190 | { |
| 4190 | frame->mouse_moved = 1; | 4191 | frame->mouse_moved = 1; |
| 4191 | last_mouse_scroll_bar = Qnil; | 4192 | last_mouse_scroll_bar = Qnil; |
| 4192 | note_mouse_highlight (frame, pos->h, pos->v); | 4193 | note_mouse_highlight (frame, pos->h, pos->v); |
| 4193 | /* Remember which glyph we're now on. */ | 4194 | /* Remember which glyph we're now on. */ |
| 4194 | remember_mouse_glyph (frame, pos->h, pos->v, &last_mouse_glyph); | 4195 | remember_mouse_glyph (frame, pos->h, pos->v, &last_mouse_glyph); |
| 4196 | return 1; | ||
| 4195 | } | 4197 | } |
| 4198 | |||
| 4199 | return 0; | ||
| 4196 | } | 4200 | } |
| 4197 | 4201 | ||
| 4198 | 4202 | ||
| @@ -10031,8 +10035,7 @@ XTread_socket (sd, expected, hold_quit) | |||
| 10031 | er.where.h + 1, er.where.v + 1); | 10035 | er.where.h + 1, er.where.v + 1); |
| 10032 | #endif | 10036 | #endif |
| 10033 | previous_help_echo_string = help_echo_string; | 10037 | previous_help_echo_string = help_echo_string; |
| 10034 | help_echo_string = help_echo_object = help_echo_window = Qnil; | 10038 | help_echo_string = Qnil; |
| 10035 | help_echo_pos = -1; | ||
| 10036 | 10039 | ||
| 10037 | if (dpyinfo->grabbed && last_mouse_frame | 10040 | if (dpyinfo->grabbed && last_mouse_frame |
| 10038 | && FRAME_LIVE_P (last_mouse_frame)) | 10041 | && FRAME_LIVE_P (last_mouse_frame)) |
| @@ -10091,7 +10094,8 @@ XTread_socket (sd, expected, hold_quit) | |||
| 10091 | 10094 | ||
| 10092 | last_window=window; | 10095 | last_window=window; |
| 10093 | } | 10096 | } |
| 10094 | note_mouse_movement (f, &mouse_pos); | 10097 | if (!note_mouse_movement (f, &mouse_pos)) |
| 10098 | help_echo_string = previous_help_echo_string; | ||
| 10095 | } | 10099 | } |
| 10096 | } | 10100 | } |
| 10097 | 10101 | ||