aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2006-02-09 15:54:56 +0000
committerJan Djärv2006-02-09 15:54:56 +0000
commita8f116e70072f0eb29e7f2ee14c13a79e220e41f (patch)
tree368daeedb2bde8f34cba313cda5e72b7a6c79555 /src
parent2ccc6e66057d3893c7553d3ae1aa812f8001adad (diff)
downloademacs-a8f116e70072f0eb29e7f2ee14c13a79e220e41f.tar.gz
emacs-a8f116e70072f0eb29e7f2ee14c13a79e220e41f.zip
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')
-rw-r--r--src/xterm.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 114a7f12459..e3407dcaaec 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -6495,6 +6495,12 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6495 so update things that depend on mouse position. */ 6495 so update things that depend on mouse position. */
6496 if (f && !f->output_data.x->hourglass_p) 6496 if (f && !f->output_data.x->hourglass_p)
6497 note_mouse_movement (f, &event.xmotion); 6497 note_mouse_movement (f, &event.xmotion);
6498#ifdef USE_GTK
6499 /* We may get an EnterNotify on the buttons in the toolbar. In that
6500 case we moved out of any highlighted area and need to note this. */
6501 if (!f && last_mouse_glyph_frame)
6502 note_mouse_movement (last_mouse_glyph_frame, &event);
6503#endif
6498 goto OTHER; 6504 goto OTHER;
6499 6505
6500 case FocusIn: 6506 case FocusIn:
@@ -6522,6 +6528,11 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
6522 if (any_help_event_p) 6528 if (any_help_event_p)
6523 do_help = -1; 6529 do_help = -1;
6524 } 6530 }
6531#ifdef USE_GTK
6532 /* See comment in EnterNotify above */
6533 else if (last_mouse_glyph_frame)
6534 note_mouse_movement (last_mouse_glyph_frame, &event);
6535#endif
6525 goto OTHER; 6536 goto OTHER;
6526 6537
6527 case FocusOut: 6538 case FocusOut: