cea-sec / sanzu

Graphical remote desktop solution
GNU General Public License v3.0
175 stars 27 forks source link

[Windows] Loosing control when opening task manager #276

Open JeremieSpiesser opened 4 months ago

JeremieSpiesser commented 4 months ago

Hello :wave: I'm using the sanzu server on a Windows laptop and it seems that when I open the windows task manager from the client, I loose control of the mouse and I need to use the trackpad on the server laptop to click away to regain control. This issue seems to affect other similar "legacy"apps such as gpedit.

serpilliere commented 4 months ago

Hi @JeremieSpiesser ! Yes, that's a "classic" on windows: The task manager has a special "protected GUI" which means that it cannot be manipulated by emulated GUI events (like emulated mouse & keyboard) So when Sanzu (or vnc for example) server runs as user, when you run a task manager, the app get the focus, but it cannot receive mouse & keyboard, so we cannot defocus or kill the app, so it's definitively "frozen" in this state.

Some options:

serpilliere commented 4 months ago

For instance: https://superuser.com/questions/1264853/loosing-vnc-control-when-i-run-an-administrator-task