I have installed Raspberry Pi Desktop for PC in Hyper-V and setup Enhanced Session mode using xrdp by following directions on Github.
Everything seems to work fine, however, after log in, you will not be able to click or type.
Some tell-tale info was revealed in the .xorgxrdp.1.log file:
28.887 ServerLayout "ServerLayout0" ... 28.924 Failed to load module "mouse" (module does not exist, 0) 28.924 No input driver matching `mouse' ... 28.925 Failed to load module "kbd" (module does not exist, 0) 28.925 No input driver matching `kbd'
In /etc/X11/xrdp/xorg.conf you will see that ServerLayout should be “X11 Server” and it should load xrdpMouse and xrdpKeyboard.
There is a report of the issue “Raspbian 10 : Can’t click icons at all” (#1784)” and it refers to issue “No Mouse / Keyboard interaction possible (#1779)”. The earlier issue contains our fix, specify the ServerLayout in sesman.ini:
# Add to [Xorg] stanza and restart.param=-layout
param=X11 Server
Now, on to building the pulseaudio xrdp module.