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