diff options
author | jsorg71 <jsorg71> | 2005-08-18 02:49:35 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-08-18 02:49:35 +0000 |
commit | 5e69f15cd7897a36aa6f79822e523b2dc7204e32 (patch) | |
tree | 81250becad8248a3bcce1aea049ffd5bf83955d5 /xrdp | |
parent | 9d2ce459daf384586ad7f9f24a8847eafe84108e (diff) | |
download | xrdp-proprietary-5e69f15cd7897a36aa6f79822e523b2dc7204e32.tar.gz xrdp-proprietary-5e69f15cd7897a36aa6f79822e523b2dc7204e32.zip |
harvest and pass on hostname and keylayout of client
Diffstat (limited to 'xrdp')
-rw-r--r-- | xrdp/xrdp_login_wnd.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 */ |