deminiaturize(_:) won't call makeKeyAndOrderFront(_:) synchronously on macOS 13

Logs are added for entering or leaving method like this

class MyWindow: NSWindow {
    ...
    override  open func makeKeyAndOrderFront(_ sender: Any?) {
        debugPrint("will front\(Float(clock())/Float(CLOCKS_PER_SEC))")
        super.makeKeyAndOrderFront(sender)
        debugPrint("fronted\(Float(clock())/Float(CLOCKS_PER_SEC))")
    }
    ...
    override  open func deminiaturize(_ sender: Any?) {
        debugPrint("will front\(Float(clock())/Float(CLOCKS_PER_SEC))")
        deminiaturize(sender)
        debugPrint("fronted\(Float(clock())/Float(CLOCKS_PER_SEC))")
    }
}

when I calls deminiaturize(_:) on macOS 12, the log printed like this every time

will deminiaturize42.011353"
will front42.012936"
fronted42.015907"
deminiaturized42.01639"

but on macOS 13, the log printed like this

will deminiaturize37.431595"
deminiaturized37.431637"
will front37.491123"
fronted37.491623"

seems that on macos13, the deminiaturize(:) no longer calls makeKeyAndOrderFront(:) synchronously. Is this a bug?

class MyWindow: NSWindow {
    ...
    override  open func makeKeyAndOrderFront(_ sender: Any?) {
        debugPrint("will front\(Float(clock())/Float(CLOCKS_PER_SEC))")
        super.makeKeyAndOrderFront(sender)
        debugPrint("fronted\(Float(clock())/Float(CLOCKS_PER_SEC))")
    }
    ...
    override  open func deminiaturize(_ sender: Any?) {
        debugPrint("will deminiaturize\(Float(clock())/Float(CLOCKS_PER_SEC))")
        super.deminiaturize(sender)
        debugPrint("deminiaturized\(Float(clock())/Float(CLOCKS_PER_SEC))")
    }
}

sorry for pasting wrong codes. Codes updated

deminiaturize(_:) won't call makeKeyAndOrderFront(_:) synchronously on macOS 13
 
 
Q