extern Lisp_Object this_command_keys;
extern int this_command_key_count;
+#ifdef MULTI_FRAME
+/* The frame in which the last input event occurred, or Qmacro if the
+ last event came from a macro. We use this to determine when to
+ generate switch-frame events. This may be cleared by functions
+ like Fselect_frame, to make sure that a switch-frame event is
+ generated by the next character. */
+extern Lisp_Object internal_last_event_frame;
+#endif
+
\f
/* Macros for dealing with lispy events. */
/* The values of Qevent_kind properties. */
extern Lisp_Object Qfunction_key, Qmouse_click, Qmouse_movement;
-extern Lisp_Object Qscrollbar_movement;
+extern Lisp_Object Qscroll_bar_movement;
/* Getting the kind of an event head. */
#define EVENT_HEAD_KIND(event_head) \