fixup laggy mux connections for recent idle changes

in the same vein as d657721163
this commit introduces more assertive signalling from the remote
mux when a pane is closed so that the client can update.
This commit is contained in:
Wez Furlong committed 2021-05-29 00:16:27 -07:00
1 parent d657721163
commit 257d323062
7 files changed
+26 -5

No files matched your search

+7
View File
@@ -436,6 +436,7 @@ pdu! {
SplitPane: 34,
KillPane: 35,
SpawnV2: 36,
PaneRemoved: 37,
}
impl Pdu {
@@ -511,6 +512,7 @@ impl Pdu {
Some(*pane_id)
}
Pdu::SetClipboard(SetClipboard { pane_id, .. }) => Some(*pane_id),
Pdu::PaneRemoved(PaneRemoved { pane_id }) => Some(*pane_id),
_ => None,
}
}
@@ -589,6 +591,11 @@ pub struct SpawnV2 {
pub size: PtySize,
}
#[derive(Deserialize, Serialize, PartialEq, Debug)]
pub struct PaneRemoved {
pub pane_id: PaneId,
}
#[derive(Deserialize, Serialize, PartialEq, Debug)]
pub struct KillPane {
pub pane_id: PaneId,