aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2005-10-23 21:12:46 +0000
committerJan Djärv2005-10-23 21:12:46 +0000
commita4b0e228b6576d8926e6272d8edd733155c3e03a (patch)
treeba5075b9ac4e4105a772846319273aa45ab19f31 /src
parent6a89788796965186604db7b06d0527d95d91f41f (diff)
downloademacs-a4b0e228b6576d8926e6272d8edd733155c3e03a.tar.gz
emacs-a4b0e228b6576d8926e6272d8edd733155c3e03a.zip
* xterm.c (note_mouse_movement): Always call note_mouse_highlight
so tool tips don't interfere with press on tool bar button.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xterm.c9
2 files changed, 10 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f81cd02a97a..32a55077ac9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12005-10-23 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * xterm.c (note_mouse_movement): Always call note_mouse_highlight
4 so tool tips don't interfere with press on tool bar button.
5
12005-10-23 Richard M. Stallman <rms@gnu.org> 62005-10-23 Richard M. Stallman <rms@gnu.org>
2 7
3 * casetab.c (Fset_case_table): Doc fix. 8 * casetab.c (Fset_case_table): Doc fix.
diff --git a/src/xterm.c b/src/xterm.c
index 41abf1a77e0..a82cd8c8c97 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3599,15 +3599,16 @@ note_mouse_movement (frame, event)
3599 return 1; 3599 return 1;
3600 } 3600 }
3601 3601
3602 note_mouse_highlight (frame, event->x, event->y);
3603
3602 /* Has the mouse moved off the glyph it was on at the last sighting? */ 3604 /* Has the mouse moved off the glyph it was on at the last sighting? */
3603 if (event->x < last_mouse_glyph.x 3605 if (event->x < last_mouse_glyph.x
3604 || event->x >= last_mouse_glyph.x + last_mouse_glyph.width 3606 || event->x >= last_mouse_glyph.x + last_mouse_glyph.width
3605 || event->y < last_mouse_glyph.y 3607 || event->y < last_mouse_glyph.y
3606 || event->y >= last_mouse_glyph.y + last_mouse_glyph.height) 3608 || event->y >= last_mouse_glyph.y + last_mouse_glyph.height)
3607 { 3609 {
3608 frame->mouse_moved = 1; 3610 frame->mouse_moved = 1;
3609 last_mouse_scroll_bar = Qnil; 3611 last_mouse_scroll_bar = Qnil;
3610 note_mouse_highlight (frame, event->x, event->y);
3611 /* Remember which glyph we're now on. */ 3612 /* Remember which glyph we're now on. */
3612 remember_mouse_glyph (frame, event->x, event->y, &last_mouse_glyph); 3613 remember_mouse_glyph (frame, event->x, event->y, &last_mouse_glyph);
3613 return 1; 3614 return 1;