diff --git a/docs/changelog.md b/docs/changelog.md index 9ed133a87..d8358544c 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -78,6 +78,8 @@ As features stabilize some brief notes about them will accumulate here. * macOS: CTRL-Q had to be pressed twice to register when `use_ime=true`. #2630 * mux: [tab:set_title()](config/lua/MuxTab/set_title.md) didn't get passed to the remote server, so any tab title changes were lost when reconnecting. #1598 +* `wezterm connect --workspace WS DOM` didn't use the provided workspace when + starting up the mux server. #2734 ### 20230326-111934-3666303c diff --git a/wezterm-gui/src/main.rs b/wezterm-gui/src/main.rs index c9e47ed52..8b4046ef2 100644 --- a/wezterm-gui/src/main.rs +++ b/wezterm-gui/src/main.rs @@ -266,6 +266,7 @@ async fn spawn_tab_in_domain_if_mux_is_empty( cmd: Option, is_connecting: bool, domain: Option>, + workspace: Option, ) -> anyhow::Result<()> { let mux = Mux::get(); @@ -290,7 +291,6 @@ async fn spawn_tab_in_domain_if_mux_is_empty( // from the size specified in the remote mux. // We use the TabAddedToWindow mux notification // to detect and adjust the size later on. - let workspace = None; let position = None; let builder = mux.new_empty_window(workspace, position); *builder @@ -520,7 +520,7 @@ async fn async_run_terminal_gui( trigger_and_log_gui_attached(MuxDomain(domain.domain_id())).await; } } - spawn_tab_in_domain_if_mux_is_empty(cmd, is_connecting, domain).await + spawn_tab_in_domain_if_mux_is_empty(cmd, is_connecting, domain, opts.workspace).await } #[derive(Debug)]