aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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);