mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Merge pull request #1178 from mitchellh/macos-restore
macos: invalid restorable state when surface is closed
This commit is contained in:
@ -374,6 +374,10 @@ extension Ghostty {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deinit {
|
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) }
|
trackingAreas.forEach { removeTrackingArea($0) }
|
||||||
|
|
||||||
// mouseExited is not called by AppKit one last time when the view
|
// mouseExited is not called by AppKit one last time when the view
|
||||||
|
Reference in New Issue
Block a user