xrdp-ng: type refactoring