changeset 68744:134afd3ac567

handle_one_xevent: Must note mouse movement even for nil frames for GTK, in that case it is the tool bar.
author Jan Djärv <jan.h.d@swipnet.se>
date Thu, 09 Feb 2006 15:54:56 +0000
parents 66c6b33975f4
children c84463d2bf28
files src/xterm.c
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Thu Feb 09 13:35:52 2006 +0000
+++ b/src/xterm.c	Thu Feb 09 15:54:56 2006 +0000
@@ -6495,6 +6495,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:
@@ -6522,6 +6528,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: