def sync_focus(self, *_):
<EOL>if self.display_popup:<EOL><INDENT>self.app.layout.focus(self.layout_manager.popup_dialog)<EOL>return<EOL><DEDENT>if self.confirm_text:<EOL><INDENT>return<EOL><DEDENT>if self.prompt_command:<EOL><INDENT>return <EOL><DEDENT>if self.command_mode:<EOL><INDENT>return <EOL><DEDENT>if not self.pymux.arrangement.windows:<EOL><INDENT>return<EOL><DEDENT>pane = self.pymux.arrangement.get_active_pane()<EOL>self.app.layout.focus(pane.terminal)<EOL>
Focus the focused window from the pymux arrangement.