Skip to content

Commit

Permalink
mac/swift: fix global variables for upcoming swift 6 concurrency
Browse files Browse the repository at this point in the history
fixes problems with upcoming features DisableOutwardActorInference,
GlobalConcurrency and InferSendableFromCaptures for swift 6 strict
concurrency. enabled with -enable-upcoming-feature flag.
  • Loading branch information
Akemi committed Jan 2, 2025
1 parent 50042f5 commit 8af05d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osdep/mac/swift_extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8af05d4

Please sign in to comment.