This commit centralizes the focus-loss logic to the Window so that activating a new tab will deactivate the pane in the current window. Note that this cannot see overlays in the gui, but overlays shouldn't care about focus, so it should be ok. refs: https://github.com/wez/wezterm/discussions/796