From 5e69f15cd7897a36aa6f79822e523b2dc7204e32 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Thu, 18 Aug 2005 02:49:35 +0000 Subject: harvest and pass on hostname and keylayout of client --- xrdp/xrdp_login_wnd.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xrdp') diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c index 57b84e66..c2c43d30 100644 --- a/xrdp/xrdp_login_wnd.c +++ b/xrdp/xrdp_login_wnd.c @@ -273,6 +273,7 @@ xrdp_wm_ok_clicked(struct xrdp_bitmap* wnd) struct list* values; struct xrdp_mod_data* mod_data; int i; + char text[256]; wm = wnd->wm; combo = xrdp_bitmap_get_child_by_id(wnd, 6); @@ -327,6 +328,12 @@ xrdp_wm_ok_clicked(struct xrdp_bitmap* wnd) (char*)list_get_item(names, i), (char*)list_get_item(values, i)); } + /* always set these */ + wm->mod->mod_set_param(wm->mod, "hostname", + wm->session->client_info->hostname); + g_sprintf(text, "%d", wm->session->client_info->keylayout); + wm->mod->mod_set_param(wm->mod, "keylayout", text); + /* connect */ if (wm->mod->mod_connect(wm->mod) != 0) { /* totaly free mod */ -- cgit v1.2.1