[PATCH] compositor-rdp: Fix rdp does not work on high resolution

Chao Shi stepinto at live.com
Sat Feb 20 10:13:39 UTC 2016

The rdp backend does not work on resolution higher than
1024x768.  The issue is that it should configure resolution
at rfx_context at xf_peer_activate().  Without this patch
mstsc client reports protocol error.  I guess 1024x768
is a default resolution defined by libfreerdp.

Tested this patch with --width=1920 --height=1024
--no-clients-resize and a win10 mstsc client.
 src/compositor-rdp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c
index 3526ad1..cded975 100644
--- a/src/compositor-rdp.c
+++ b/src/compositor-rdp.c
@@ -867,6 +867,8 @@ xf_peer_activate(freerdp_peer* client)
+	peerCtx->rfx_context->width = output->base.width;
+	peerCtx->rfx_context->height = output->base.height;

More information about the wayland-devel mailing list