aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1992-10-12 21:25:28 +0000
committerJim Blandy1992-10-12 21:25:28 +0000
commit6f97c96a779ee108403371d95f25c384200f719e (patch)
treea3d580f52e3510b6e4ad2863f815911e5809637c /src
parentbbc60227beb7a3013276b11049e3710d59d82eae (diff)
downloademacs-6f97c96a779ee108403371d95f25c384200f719e.tar.gz
emacs-6f97c96a779ee108403371d95f25c384200f719e.zip
* keyboard.c (kbd_buffer_get_event): Remember that
*mouse_position_hook may set *FRAME to 0; don't generate switch-frame events in this case.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index bd76b4cd966..5601c2acefc 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1618,7 +1618,9 @@ kbd_buffer_get_event ()
1618 1618
1619 (*mouse_position_hook) (&frame, &x, &y, &time); 1619 (*mouse_position_hook) (&frame, &x, &y, &time);
1620 1620
1621 if (frame != XFRAME (Vlast_event_frame)) 1621 /* Decide if we should generate a switch-frame event. Don't generate
1622 switch-frame events for motion outside of all Emacs frames. */
1623 if (frame && frame != XFRAME (Vlast_event_frame))
1622 { 1624 {
1623 XSET (Vlast_event_frame, Lisp_Frame, frame); 1625 XSET (Vlast_event_frame, Lisp_Frame, frame);
1624 obj = make_lispy_switch_frame (Vlast_event_frame); 1626 obj = make_lispy_switch_frame (Vlast_event_frame);