mux client: consider domain id when mapping panes

We weren't matching the domain id when resolving the remote->local pane
mapping, which meant that having 2 or more mux client domains active
would lead to associating eg: remote pane id 1 with whichever local
pane was associated with any remote pane id 1 *first*.

This commit requires that both the domain id and the remote pane id
match.

refs: https://github.com/wez/wezterm/issues/2616
This commit is contained in:
Wez Furlong committed 2022-10-11 21:28:11 -07:00
1 parent 7ba9c00e49
commit 0d78261a30
2 files changed
+6

No files matched your search

+3
View File
@@ -84,6 +84,9 @@ As features stabilize some brief notes about them will accumulate here.
* CharSelect now uppercases hex digit input for better compatibility with
QMK-based keyboards that send eg: `CTRL-SHIFT-U e 1 <ENTER>`.
[#2581](https://github.com/wez/wezterm/issues/2581)
* Multiple active multiplexer client domain connections could result
in showing duplicate tabs in a window
[#2616](https://github.com/wez/wezterm/issues/2616)
#### Changed
* Removed Last Resort fallback font
+3
View File
@@ -122,6 +122,9 @@ impl ClientInner {
let mux = Mux::get().unwrap();
for pane in mux.iter_panes() {
if pane.domain_id() != self.local_domain_id {
continue;
}
if let Some(pane) = pane.downcast_ref::<ClientPane>() {
if pane.remote_pane_id() == remote_pane_id {
let local_pane_id = pane.pane_id();