select-window-enter-hook (1 arg)

This hook is invoked when a window is entered during window selection.\n\ The hook procedures are called with a single argument, the window just entered.\n\ This hook is invoked once select-window-interactively-no-message is\n\ called if the pointer is already in a window. (But the\n\ leave hook is not invoked similarly when the selection completes).