summaryrefslogtreecommitdiffstats
path: root/xrdp/xrdp_mm.c
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2012-05-13 13:56:15 -0700
committerJay Sorg <jay.sorg@gmail.com>2012-05-13 13:56:15 -0700
commite0fc7297f5bd0c4297e6b6b8ca2d7cd80251b1c9 (patch)
treec59520c6fa41aede3b3e9940518474cade61dc56 /xrdp/xrdp_mm.c
parent67bd319adf4fafabcb1ea9124b8d64209d3ebcf7 (diff)
downloadxrdp-proprietary-e0fc7297f5bd0c4297e6b6b8ca2d7cd80251b1c9.tar.gz
xrdp-proprietary-e0fc7297f5bd0c4297e6b6b8ca2d7cd80251b1c9.zip
pass the client_info(caps) on to module and xserver
Diffstat (limited to 'xrdp/xrdp_mm.c')
-rw-r--r--xrdp/xrdp_mm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xrdp/xrdp_mm.c b/xrdp/xrdp_mm.c
index c15c4bd5..a41208eb 100644
--- a/xrdp/xrdp_mm.c
+++ b/xrdp/xrdp_mm.c
@@ -430,6 +430,10 @@ xrdp_mm_setup_mod2(struct xrdp_mm* self)
list_add_item(self->login_values, (long)g_strdup(text));
}
/* always set these */
+
+ self->mod->mod_set_param(self->mod, "client_info",
+ (char*)(self->wm->session->client_info));
+
name = self->wm->session->client_info->hostname;
self->mod->mod_set_param(self->mod, "hostname", name);
g_snprintf(text, 255, "%d", self->wm->session->client_info->keylayout);