fix: dispatch various actions correctly (#1530)

This commit is contained in:
a-kenji 2022-06-19 21:49:47 +02:00 committed by GitHub
parent 162f916f6a
commit 0c24edea7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,13 +229,21 @@ impl InputHandler {
.send_to_server(ClientToServerMsg::DetachSession(vec![*first, *last])); .send_to_server(ClientToServerMsg::DetachSession(vec![*first, *last]));
break; break;
}, },
// Actions, that are indepenedent from the specific client // Actions, that are independent from the specific client
// and not session idempotent should be specified here // and not session idempotent should be specified here
Action::NewTab(_) Action::NewTab(_)
| Action::CloseFocus
| Action::CloseTab
| Action::Run(_) | Action::Run(_)
| Action::NewPane(_) | Action::NewPane(_)
| Action::WriteChars(_) | Action::WriteChars(_)
| Action::EditScrollback | Action::EditScrollback
| Action::DumpScreen(_)
| Action::ToggleActiveSyncTab
| Action::ToggleFloatingPanes
| Action::TogglePaneEmbedOrFloating
| Action::TogglePaneFrames
| Action::ToggleFocusFullscreen
| Action::Write(_) => { | Action::Write(_) => {
let client_id = clients.first().unwrap(); let client_id = clients.first().unwrap();
log::error!("Sending action to client: {}", client_id); log::error!("Sending action to client: {}", client_id);