window-focus-change-hook (1 arg)

This hook is invoked whenever the keyboard focus is changed.\n\ It is called with one argument, the window object of the window\n\ that now has the focus, or #f if no window now has the focus. \n\ See also window-focus-lost-hook.