xrdp-ng: refactor client interface