But I can still click on it. And it would be pain for users to have to wait between each rule validation. I rather use what Apple did: https://twitter.com/pwnsdx/status/812653042898243584 but it looks like there is absolutely no documentation about how they did. If anyone know how they did it, feel free to PM
I would imagine there’s some way to tell whether an NSEvent or CGEvent is synthetic, similar to how X11’s XEvent struct has a send_event flag that applications like xterm can check for and block (when allowSendEvents is off).
Seems kind of strange that EnableSecureEventInput doesn’t do anything regarding mouse input.
This is why Firefox disables the Allow button for a few seconds when installing an add-on.
But I can still click on it. And it would be pain for users to have to wait between each rule validation. I rather use what Apple did: https://twitter.com/pwnsdx/status/812653042898243584 but it looks like there is absolutely no documentation about how they did. If anyone know how they did it, feel free to PM
I would imagine there’s some way to tell whether an
NSEventorCGEventis synthetic, similar to how X11’sXEventstruct has asend_eventflag that applications like xterm can check for and block (whenallowSendEventsis off).Seems kind of strange that
EnableSecureEventInputdoesn’t do anything regarding mouse input.Found:
https://twitter.com/JZdziarski/status/813052980127821827 https://twitter.com/JZdziarski/status/813391275059777537
He didn’t disclosed how exactly he did simulated mouse events capture but it should be the same as for keyboard.