macos: invalid restorable state when surface is closed

Fixes #1177
This commit is contained in:
Mitchell Hashimoto
2023-12-28 19:39:47 -08:00
parent f71c597037
commit 40e882ff48

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