aerospace fork
Something went wrong. Try again.
12345678910111213141516@MainActor private var lastKnownNativeFocusedWindowId: UInt32? = nil
/// The data should flow (from nativeFocused to focused) and/// (from nativeFocused to lastKnownNativeFocusedWindowId)/// Alternative names: takeFocusFromMacOs, syncFocusFromMacOs@MainActor func updateFocusCache(_ nativeFocused: Window?) { if nativeFocused?.parent is MacosPopupWindowsContainer { return } if nativeFocused?.windowId != lastKnownNativeFocusedWindowId { _ = nativeFocused?.focusWindow() lastKnownNativeFocusedWindowId = nativeFocused?.windowId } nativeFocused?.macAppUnsafe.lastNativeFocusedWindowId = nativeFocused?.windowId}