fix: only PaneClicked events change focus

This commit is contained in:
RipleyTom 2026-07-09 13:51:51 +02:00 • committed by Jacob Kauffmann
parent d05ed099b6
commit 44d042f45d
2 changed files with 2 additions and 3 deletions

View file

@ -2582,7 +2582,8 @@ impl Application for App {
}
Message::PaneClicked(pane) => {
self.pane_model.set_focus(pane);
return self.update_title(Some(pane));
let title_task = self.update_title(Some(pane));
return Task::batch([self.update_focus(), title_task]);
}
Message::PaneSplit(axis) => {
let result = self.pane_model.panes.split(

View file

@ -1377,8 +1377,6 @@ where
}
shell.capture_event();
}
} else {
state.is_focused = false;
}
}
Event::Mouse(MouseEvent::ButtonReleased(Button::Left)) => {