aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorJan Djärv <[email protected]>2006-02-09 15:54:56 +0000
committerJan Djärv <[email protected]>2006-02-09 15:54:56 +0000
commita8f116e70072f0eb29e7f2ee14c13a79e220e41f (patch)
tree368daeedb2bde8f34cba313cda5e72b7a6c79555 /src/xterm.c
parent2ccc6e66057d3893c7553d3ae1aa812f8001adad (diff)
handle_one_xevent: Must note mouse movement even for nil frames for GTK,
in that case it is the tool bar.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 114a7f1245..e3407dcaae 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6495,6 +6495,12 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
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 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
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: