/[emacs]/emacs/src/w32term.c
ViewVC logotype

Diff of /emacs/src/w32term.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.235 by mituharu, Wed Oct 12 12:18:29 2005 UTC revision 1.236 by mituharu, Fri Oct 14 08:09:33 2005 UTC
# Line 3204  construct_drag_n_drop (result, msg, f) Line 3204  construct_drag_n_drop (result, msg, f)
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;
# Line 3221  note_mouse_movement (frame, msg) Line 3221  note_mouse_movement (frame, 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;
# Line 3237  note_mouse_movement (frame, msg) Line 3238  note_mouse_movement (frame, msg)
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    
# Line 4314  w32_read_socket (sd, expected, hold_quit Line 4318  w32_read_socket (sd, expected, hold_quit
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))
# Line 4352  w32_read_socket (sd, expected, hold_quit Line 4357  w32_read_socket (sd, expected, hold_quit
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              {              {

Legend:
Removed from v.1.235  
changed lines
  Added in v.1.236

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26