Unlock session when an application starts remote control

When using Rustdesk for remote access to my main device, it seems unnecessary to have to unlock your session after logging in. This is especially annoying since numbers entered using the Rustdesk mobile app sometimes become other characters, making it difficult to enter passwords. I would like an option to automatically unlock the session when using a remote control application.

If the application only controls the computer and does not capture the screen (e.g. KDE Connect), the session should be unlocked because it’s clear that the person controlling the computer owns it and is near the device.

If the application controls the computer and captures the screen (e.g. Rustdesk), don’t unlock the screen (don’t even turn it on) because the person controlling the computer likely won’t see it. Instead, hide the lock screen from the screencast in the same way that windows can be hidden from screencast. Also, ensure that input from the application reaches the running session and not the lock screen.