The signal activate is emitted when a window becomes the active window of the application or session.