import Foundation import CoreGraphics // WindowInfo is the value type for one window. The primary key is the // CGWindowID. The type does not hold the AXUIElement. The AX element lives in // a separate cache (AXElementCache). See spec section 7.2. struct WindowInfo: Identifiable, Equatable { let id: CGWindowID let pid: pid_t let bundleID: String? var title: String // fallback: the application name var spaceIDs: [UInt64] // from SpaceService; empty if unknown var isOnCurrentSpace: Bool var isMinimized: Bool var isFullScreen: Bool var firstSeen: Date // used for the stable order (decision D5) }