This should be happening implicitly, but isn't always for some reason on macOS 13.tags/v1.12.90
[nsw setLevel:CGShieldingWindowLevel()]; | [nsw setLevel:CGShieldingWindowLevel()]; | ||||
// We're not getting put in front of the shielding window in many | |||||
// cases on macOS 13, despite setLevel: being documented as also | |||||
// pushing the window to the front. So let's explicitly move it. | |||||
[nsw orderFront:nsw]; | |||||
return 0; | return 0; | ||||
} | } | ||||