summaryrefslogtreecommitdiff
path: root/macos/Sources/Features
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-09-12 20:40:53 -0700
committerGitHub <noreply@github.com>2025-09-12 20:40:53 -0700
commitbbf03cfa07db214ac600343ffb5e51d72154a0bb (patch)
treedd3b1a41af84bc16a62a663850cb9710881e07b0 /macos/Sources/Features
parentda7e3d1882573260580c8d260c48654ab5f130df (diff)
parenteaaf5aa8cf268105ffca99d4fc3435854657adc7 (diff)
macOS 26: always reset titlebar tab constraints on frame change (#8610)
Fixes #8595 Whenever the titlebar frame changes, we should set up our constraints again to force it to re-render properly.
Diffstat (limited to 'macos/Sources/Features')
-rw-r--r--macos/Sources/Features/Terminal/Window Styles/TitlebarTabsTahoeTerminalWindow.swift5
1 files changed, 1 insertions, 4 deletions
diff --git a/macos/Sources/Features/Terminal/Window Styles/TitlebarTabsTahoeTerminalWindow.swift b/macos/Sources/Features/Terminal/Window Styles/TitlebarTabsTahoeTerminalWindow.swift
index 9381f7329..260fac4cc 100644
--- a/macos/Sources/Features/Terminal/Window Styles/TitlebarTabsTahoeTerminalWindow.swift
+++ b/macos/Sources/Features/Terminal/Window Styles/TitlebarTabsTahoeTerminalWindow.swift
@@ -156,7 +156,7 @@ class TitlebarTabsTahoeTerminalWindow: TransparentTitlebarTerminalWindow, NSTool
accessoryView.needsLayout = true
// Setup an observer for the NSTabBar frame. When system appearance changes or
- // other events occur, the tab bar can temporarily become zero-sized. When this
+ // other events occur, the tab bar can resize and clear our constraints. When this
// happens, we need to remove our custom constraints and re-apply them once the
// tab bar has proper dimensions again to avoid constraint conflicts.
tabBar.postsFrameChangedNotifications = true
@@ -167,9 +167,6 @@ class TitlebarTabsTahoeTerminalWindow: TransparentTitlebarTerminalWindow, NSTool
) { [weak self] _ in
guard let self else { return }
- // Check if either width or height is zero
- guard tabBar.frame.size.width == 0 || tabBar.frame.size.height == 0 else { return }
-
// Remove the observer so we can call setup again.
self.tabBarObserver = nil