select-window-done-hook (1 arg)

This hooks is run when a window is selected.\n\ The hook procedures are called with a single argument, the window just left.\n\ See also select-window-enter-hook and select-window-leave-hook.