Commit 6f97c96a authored by Jim Blandy's avatar Jim Blandy

* 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.
parent bbc60227
......@@ -1618,7 +1618,9 @@ kbd_buffer_get_event ()
(*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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment