How to get running window informations in macOS
Issue #243 From https://developer.apple.com/documentation/coregraphics/1455137-cgwindowlistcopywindowinfo Generates and returns information about the selected windows in the current user session. struct MyWindowInfo { let frame: CGRect let name: String let pid: Int let number: Int init?(json: [String: Any]) { guard let pid = json["kCGWindowOwnerPID"] as? Int else { return nil } guard let name = json["kCGWindowOwnerName"] as? String else { return nil } guard let rect = json["kCGWindowBounds"] as? [String: Any] else { return nil } guard let x = rect["X"] as?...