A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.
Rust agentagent-orchestrationaiai-agentsclaude-codecodexcoding-agentlinuxmacosmultiplayermultiplexerrustterminalterminal-emulatorterminal-multiplexertmuxtuiweztermwindows
fix(gui): start a thread window's tabs nearer the traffic lights
RoversX463d30cbb227
diff --git a/wezterm-gui/src/termwindow/mouseevent.rs b/wezterm-gui/src/termwindow/mouseevent.rsindex c1f2e4d0..2013e186 100644--- a/wezterm-gui/src/termwindow/mouseevent.rs+++ b/wezterm-gui/src/termwindow/mouseevent.rs@@ -6,7 +6,7 @@ use crate::termwindow::space_swipe::{SidebarSpaceSwipeFinish, SidebarSpaceSwipeUuse crate::termwindow::ui::platform_chrome::WindowTabChromeParams;use crate::termwindow::ui::sidebar::SpaceConnectionState;use crate::termwindow::ui::tokens::{- PANE_NAV_INSET, PANE_NAV_TAB_GAP, TAB_MIN_WIDTH,+ MACOS_THREAD_WINDOW_TAB_START, PANE_NAV_INSET, PANE_NAV_TAB_GAP, TAB_MIN_WIDTH,TAB_ROW_START_PADDING, TAB_TARGET_WIDTH, TAB_VERTICAL_PADDING,WINDOW_TAB_ACTION_RESERVED_WIDTH, WINDOW_TAB_GAP, WINDOW_TAB_LEADING_ACTION_BUTTON_SIZE,WINDOW_TAB_LEADING_ACTION_GAP, WINDOW_TAB_TOP_SPACER,@@ -676,9 +676,10 @@ impl super::TermWindow {pub(super) fn pane_nav_tab_left_inset(&self, pos: &PositionedPane) -> usize {// A window tab row out of the layout leaves the traffic lights and// the sidebar button beside them over the top-left pane's bar, whose- // tabs then start where the row's do. Brought down, the row takes- // them back and pushes the bar below them: its tabs go back to the- // edge as the row comes. Off macOS the bar holds the sidebar button+ // tabs then start where the row's do, or nearer the lights in a+ // thread's own window, which has no button. Brought down, the row+ // takes them back and pushes the bar below them: its tabs go back to+ // the edge as the row comes. Off macOS the bar holds the sidebar button// itself (see `pane_bar_sidebar_toggle_share`), and makes way for it// the same way.let edge = self.ui_px(PANE_NAV_INSET) as f32;@@ -689,8 +690,12 @@ impl super::TermWindow {&& self.workspace_sidebar_width() == 0&& !self.window_tab_reveal.in_layout(){- let clear = self.window_tab_left_padding_pixels().ceil()- + self.ui_px(TAB_ROW_START_PADDING) as f32;+ let clear = if self.dedicated_thread.is_some() {+ self.ui_px(MACOS_THREAD_WINDOW_TAB_START) as f32+ } else {+ self.window_tab_left_padding_pixels().ceil()+ + self.ui_px(TAB_ROW_START_PADDING) as f32+ };let away = 1.0 - self.window_tab_reveal.shown();return (edge + (clear - edge).max(0.0) * away).round() as usize;}diff --git a/wezterm-gui/src/termwindow/ui/tokens.rs b/wezterm-gui/src/termwindow/ui/tokens.rsindex 65a5857f..907263b8 100644--- a/wezterm-gui/src/termwindow/ui/tokens.rs+++ b/wezterm-gui/src/termwindow/ui/tokens.rs@@ -53,6 +53,9 @@ pub const WINDOW_TAB_REVEAL_EDGE_OVER_CONTROLS_HEIGHT: usize = 8;pub const WINDOW_RESIZE_EDGE_HEIGHT: usize = 12;pub const MACOS_TITLEBAR_CONTENT_TOP_INSET: usize = 52;pub const MACOS_TRAFFIC_LIGHT_CLEARANCE_WIDTH: usize = 164;+/// Where a thread's own window starts its tabs on macOS, nearer the traffic+/// lights than a window tab row: nothing else shares the bar with them.+pub const MACOS_THREAD_WINDOW_TAB_START: usize = 160;pub const MACOS_WINDOW_TAB_RESERVED_ACTION_SLOTS: usize = 1;/// A tab row's height, from its title font's line height.