One can argue about the granularity, but you can’t argue that Apple hasn’t already done something.
The user chose to install an application, then had to use admin permissions to choose to give that application more access after installation.
How much additional nanny protection should a user get?
I already granted this permission to Teams on my Mac. It's not malicious now, but when an update comes out in the future, it could be, and I've already allowed it. So this whole thing feels kinda dumb. Nobody wants to manage all this shit, and nobody understands it.
With X11 if the window manager doesn't have the relevant support you can always ask the server.
Also, screen-sharing can't be the reason, because X windows don't have anything to do with processes on the machine.