]> git.eshelyaron.com Git - emacs.git/commitdiff
* xterm.c (note_mouse_movement): Always call note_mouse_highlight
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 23 Oct 2005 21:12:46 +0000 (21:12 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 23 Oct 2005 21:12:46 +0000 (21:12 +0000)
so tool tips don't interfere with press on tool bar button.

src/ChangeLog
src/xterm.c

index f81cd02a97ad4004c6b38ae447d1939697a310fc..32a55077ac9bb3b966fbadff707adf29987849be 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-23  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * xterm.c (note_mouse_movement): Always call note_mouse_highlight
+       so tool tips don't interfere with press on tool bar button.
+
 2005-10-23  Richard M. Stallman  <rms@gnu.org>
 
        * casetab.c (Fset_case_table): Doc fix.
index 41abf1a77e071b9e70b70182590155b10e97aa6a..a82cd8c8c9743d5d5aca79a82769bf056f387f9e 100644 (file)
@@ -3599,15 +3599,16 @@ note_mouse_movement (frame, event)
       return 1;
     }
 
+  note_mouse_highlight (frame, event->x, event->y);
+
   /* Has the mouse moved off the glyph it was on at the last sighting?  */
   if (event->x < last_mouse_glyph.x
-          || event->x >= last_mouse_glyph.x + last_mouse_glyph.width
-          || event->y < last_mouse_glyph.y
-          || event->y >= last_mouse_glyph.y + last_mouse_glyph.height)
+      || event->x >= last_mouse_glyph.x + last_mouse_glyph.width
+      || event->y < last_mouse_glyph.y
+      || event->y >= last_mouse_glyph.y + last_mouse_glyph.height)
     {
       frame->mouse_moved = 1;
       last_mouse_scroll_bar = Qnil;
-      note_mouse_highlight (frame, event->x, event->y);
       /* Remember which glyph we're now on.  */
       remember_mouse_glyph (frame, event->x, event->y, &last_mouse_glyph);
       return 1;