Merge pull request #1178 from mitchellh/macos-restore

macos: invalid restorable state when surface is closed
This commit is contained in:
Mitchell Hashimoto
2023-12-28 19:44:16 -08:00
committed by GitHub

View File

@ -374,6 +374,10 @@ extension Ghostty {
}
deinit {
// Whenever the surface is removed, we need to note that our restorable
// state is invalid to prevent the surface from being restored.
invalidateRestorableState()
trackingAreas.forEach { removeTrackingArea($0) }
// mouseExited is not called by AppKit one last time when the view