diff src/xterm.c @ 90295:4b3d39451150

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-14 Merge from emacs--devo--0 Patches applied: * emacs--devo--0 (patch 58-65) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 22-28) - Update from CVS - Merge from emacs--devo--0 - Update from CVS: lisp/gnus.el: Remove bogus comment.
author Miles Bader <miles@gnu.org>
date Sat, 11 Feb 2006 00:11:19 +0000
parents 5b7d410e31f9 134afd3ac567
children d57ee9eab157
line wrap: on
line diff
--- a/src/xterm.c	Wed Feb 08 04:26:44 2006 +0000
+++ b/src/xterm.c	Sat Feb 11 00:11:19 2006 +0000
@@ -6475,6 +6475,12 @@
 	 so update things that depend on mouse position.  */
       if (f && !f->output_data.x->hourglass_p)
 	note_mouse_movement (f, &event.xmotion);
+#ifdef USE_GTK
+      /* We may get an EnterNotify on the buttons in the toolbar.  In that
+         case we moved out of any highlighted area and need to note this.  */
+      if (!f && last_mouse_glyph_frame)
+        note_mouse_movement (last_mouse_glyph_frame, &event);
+#endif
       goto OTHER;
 
     case FocusIn:
@@ -6502,6 +6508,11 @@
           if (any_help_event_p)
 	    do_help = -1;
         }
+#ifdef USE_GTK
+      /* See comment in EnterNotify above */
+      else if (last_mouse_glyph_frame)
+        note_mouse_movement (last_mouse_glyph_frame, &event);
+#endif
       goto OTHER;
 
     case FocusOut: