window-enter-hook (1 arg)

This hook is invoked whenever the mouse pointer enters a top-level window.\n\ It is called with one argument, the window object of the window just\n\ entered.