mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-05 23:28:41 +00:00
Fixes #13386 Defer transparent-titlebar KVO rebinding to the next main-queue turn. Track the observed tab group so unchanged bindings are preserved. Previously, a tab-group callback could invalidate and recreate its own observation before returning, leaving closed terminal windows registered with AppKit after the undo timeout. These windows accumulated titlebar and layer state, increasing memory use and WindowServer CPU with tab churn. Validated with an AppDelegate change that sat and created/closed tabs in a loop, then counted weak controllers/windows/nsapp window. Co-authored-by: Mustafa J <mustafa.0x@gmail.com>