secure event input disabled from one application disables it system wide though other applications had enabled, How to handle it?

I have created two applications both calls EnableSecureEventInput api when launched to enable secure input (keyloggers should not capture keystrokes). But when one of these application calls DisableSecureEventInput it is disabled system wide and the other application also lost the secure input though it had called the enable api. isn't this buggy? or am i missing something here?

I tried to look for the api's behaviour online but could not find any, except the technical note: https://developer.apple.com/library/archive/technotes/tn2150/_index.html#//apple_ref/doc/uid/DTS10004249 which is too old not having enough details. Please share any related docs

I don’t have any immediate input (hey hey!) on this topic. There’s a lot of moving parts here and it’s hard to confirm anything without investing a significant amount of time, more time than I have available to spend on DevForums. If you’ve already invested that time, and are confident of your conclusions, I encourage you to file a bug with the details (and, if you do, please post your bug number, just for the record). If not, I recommend that you open a DTS tech support incident and that’ll allow me to allocate the time to look into this properly.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

secure event input disabled from one application disables it system wide though other applications had enabled, How to handle it?
 
 
Q