The signal deactivate is emitted when a window is no longer the active window of the application or session.