We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5cf0e1 commit e90ed1dCopy full SHA for e90ed1d
1 file changed
Loop/Private APIs/SkyLightToolBelt.swift
@@ -21,13 +21,17 @@ enum SkyLightToolBelt {
21
return false
22
}
23
24
- var wid = windowID
25
var psn = ProcessSerialNumber()
26
let status = GetProcessForPID(pid, &psn)
27
28
- var cgStatus = SLPSSetFrontProcessWithOptions(
+ guard status == noErr else {
+ Log.error("Failed to get PSN: \(status)", category: .skyLightToolBelt)
29
+ return false
30
+ }
31
+
32
+ let cgStatus = SLPSSetFrontProcessWithOptions(
33
&psn,
- wid,
34
+ windowID,
35
kCPSUserGenerated
36
)
37
0 commit comments