# HG changeset patch # User Jan Dj¸«£rv # Date 1139500496 0 # Node ID 134afd3ac56798b579ba106e34ec3d8038d22230 # Parent 66c6b33975f45fa01a26491c5a32d2c68585e780 handle_one_xevent: Must note mouse movement even for nil frames for GTK, in that case it is the tool bar. diff -r 66c6b33975f4 -r 134afd3ac567 src/xterm.c --- 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: