aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2005-10-14 08:10:05 +0000
committerYAMAMOTO Mitsuharu2005-10-14 08:10:05 +0000
commitfc5c75503bfc9f04b32be4cfe2400ec24f29ca7b (patch)
treee3ada05166ed8f2c8a0b71300d0d6a3071271d15 /src
parentaf1229d96a42d9b12b588e05da3410a3c2b93ec1 (diff)
downloademacs-fc5c75503bfc9f04b32be4cfe2400ec24f29ca7b.tar.gz
emacs-fc5c75503bfc9f04b32be4cfe2400ec24f29ca7b.zip
(note_mouse_movement, w32_read_socket): Apply 2005-10-14 changes for
xterm.c.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog7
-rw-r--r--src/w32term.c18
2 files changed, 19 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6c63a3cd20b..3bc5ca526f1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,10 @@
12005-10-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * macterm.c (note_mouse_movement, XTread_socket): Apply 2005-10-14
4 changes for xterm.c.
5
6 * w32term.c (note_mouse_movement, w32_read_socket): Likewise.
7
12005-10-14 Kenichi Handa <handa@m17n.org> 82005-10-14 Kenichi Handa <handa@m17n.org>
2 9
3 * search.c (search_buffer): Give up BM search on case-fold-search 10 * search.c (search_buffer): Give up BM search on case-fold-search
diff --git a/src/w32term.c b/src/w32term.c
index 96d26344b53..dcb56de911f 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -3204,7 +3204,7 @@ construct_drag_n_drop (result, msg, f)
3204static MSG last_mouse_motion_event; 3204static MSG last_mouse_motion_event;
3205static Lisp_Object last_mouse_motion_frame; 3205static Lisp_Object last_mouse_motion_frame;
3206 3206
3207static void 3207static int
3208note_mouse_movement (frame, msg) 3208note_mouse_movement (frame, msg)
3209 FRAME_PTR frame; 3209 FRAME_PTR frame;
3210 MSG *msg; 3210 MSG *msg;
@@ -3221,13 +3221,14 @@ note_mouse_movement (frame, msg)
3221 frame->mouse_moved = 1; 3221 frame->mouse_moved = 1;
3222 last_mouse_scroll_bar = Qnil; 3222 last_mouse_scroll_bar = Qnil;
3223 note_mouse_highlight (frame, -1, -1); 3223 note_mouse_highlight (frame, -1, -1);
3224 return 1;
3224 } 3225 }
3225 3226
3226 /* Has the mouse moved off the glyph it was on at the last sighting? */ 3227 /* Has the mouse moved off the glyph it was on at the last sighting? */
3227 else if (mouse_x < last_mouse_glyph.left 3228 if (mouse_x < last_mouse_glyph.left
3228 || mouse_x >= last_mouse_glyph.right 3229 || mouse_x >= last_mouse_glyph.right
3229 || mouse_y < last_mouse_glyph.top 3230 || mouse_y < last_mouse_glyph.top
3230 || mouse_y >= last_mouse_glyph.bottom) 3231 || mouse_y >= last_mouse_glyph.bottom)
3231 { 3232 {
3232 frame->mouse_moved = 1; 3233 frame->mouse_moved = 1;
3233 last_mouse_scroll_bar = Qnil; 3234 last_mouse_scroll_bar = Qnil;
@@ -3237,7 +3238,10 @@ note_mouse_movement (frame, msg)
3237 to keep track of the mouse for help_echo and highlighting at 3238 to keep track of the mouse for help_echo and highlighting at
3238 other times. */ 3239 other times. */
3239 remember_mouse_glyph (frame, mouse_x, mouse_y, &last_mouse_glyph); 3240 remember_mouse_glyph (frame, mouse_x, mouse_y, &last_mouse_glyph);
3241 return 1;
3240 } 3242 }
3243
3244 return 0;
3241} 3245}
3242 3246
3243 3247
@@ -4314,6 +4318,7 @@ w32_read_socket (sd, expected, hold_quit)
4314 } 4318 }
4315 4319
4316 previous_help_echo_string = help_echo_string; 4320 previous_help_echo_string = help_echo_string;
4321 help_echo_string = Qnil;
4317 4322
4318 if (dpyinfo->grabbed && last_mouse_frame 4323 if (dpyinfo->grabbed && last_mouse_frame
4319 && FRAME_LIVE_P (last_mouse_frame)) 4324 && FRAME_LIVE_P (last_mouse_frame))
@@ -4352,7 +4357,8 @@ w32_read_socket (sd, expected, hold_quit)
4352 4357
4353 last_window=window; 4358 last_window=window;
4354 } 4359 }
4355 note_mouse_movement (f, &msg.msg); 4360 if (!note_mouse_movement (f, &msg.msg))
4361 help_echo_string = previous_help_echo_string;
4356 } 4362 }
4357 else 4363 else
4358 { 4364 {