xrdp-ng: code cleanup