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

Diff of /emacs/src/xterm.c

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

revision 1.883 by mituharu, Wed Oct 12 12:18:42 2005 UTC revision 1.884 by kfstorm, Thu Oct 13 22:41:21 2005 UTC
# Line 3582  construct_mouse_click (result, event, f) Line 3582  construct_mouse_click (result, event, f)
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;
# Line 3596  note_mouse_movement (frame, event) Line 3596  note_mouse_movement (frame, 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)
# Line 3609  note_mouse_movement (frame, event) Line 3610  note_mouse_movement (frame, event)
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    
# Line 6483  handle_one_xevent (dpyinfo, eventp, fini Line 6487  handle_one_xevent (dpyinfo, eventp, fini
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))
# Line 6523  handle_one_xevent (dpyinfo, eventp, fini Line 6526  handle_one_xevent (dpyinfo, eventp, fini
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            {            {

Legend:
Removed from v.1.883  
changed lines
  Added in v.1.884

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