From 8af05d4fa1f027a7714a98d5b71ab8b5c3412bd2 Mon Sep 17 00:00:00 2001 From: der richter Date: Wed, 1 Jan 2025 12:50:00 +0100 Subject: [PATCH] mac/swift: fix global variables for upcoming swift 6 concurrency fixes problems with upcoming features DisableOutwardActorInference, GlobalConcurrency and InferSendableFromCaptures for swift 6 strict concurrency. enabled with -enable-upcoming-feature flag. --- osdep/mac/swift_extensions.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osdep/mac/swift_extensions.swift b/osdep/mac/swift_extensions.swift index 81489f9a840ca..954730578da18 100644 --- a/osdep/mac/swift_extensions.swift +++ b/osdep/mac/swift_extensions.swift @@ -48,8 +48,8 @@ extension NSScreen { } extension NSEvent.ModifierFlags { - public static var optionLeft: NSEvent.ModifierFlags = .init(rawValue: UInt(NX_DEVICELALTKEYMASK)) - public static var optionRight: NSEvent.ModifierFlags = .init(rawValue: UInt(NX_DEVICERALTKEYMASK)) + public static let optionLeft: NSEvent.ModifierFlags = .init(rawValue: UInt(NX_DEVICELALTKEYMASK)) + public static let optionRight: NSEvent.ModifierFlags = .init(rawValue: UInt(NX_DEVICERALTKEYMASK)) } extension mp_keymap {