changeset 1402:6a0dcfc81b4f

* 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.
author Jim Blandy <jimb@redhat.com>
date Mon, 12 Oct 1992 21:25:28 +0000
parents 9689db083f88
children f0ea279194f8
files src/keyboard.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Mon Oct 12 21:07:25 1992 +0000
+++ b/src/keyboard.c	Mon Oct 12 21:25:28 1992 +0000
@@ -1618,7 +1618,9 @@
 
       (*mouse_position_hook) (&frame, &x, &y, &time);
 
-      if (frame != XFRAME (Vlast_event_frame))
+      /* Decide if we should generate a switch-frame event.  Don't generate
+	 switch-frame events for motion outside of all Emacs frames.  */
+      if (frame && frame != XFRAME (Vlast_event_frame))
 	{
 	  XSET (Vlast_event_frame, Lisp_Frame, frame);
 	  obj = make_lispy_switch_frame (Vlast_event_frame);