diff options
author | jsorg71 <jsorg71> | 2005-08-25 23:58:16 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2005-08-25 23:58:16 +0000 |
commit | db4a50d56e62cdd2bcadeb201e2784a3842240eb (patch) | |
tree | 9b8d851e824fd0e1977efb3b73742b710ee4f981 | |
parent | 7d891a1bde2f8287f333fda9acc88310d783da73 (diff) | |
download | xrdp-proprietary-db4a50d56e62cdd2bcadeb201e2784a3842240eb.tar.gz xrdp-proprietary-db4a50d56e62cdd2bcadeb201e2784a3842240eb.zip |
set hostname and keylayout first
-rw-r--r-- | xrdp/xrdp_login_wnd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xrdp/xrdp_login_wnd.c b/xrdp/xrdp_login_wnd.c index be2f6451..0e96b1cb 100644 --- a/xrdp/xrdp_login_wnd.c +++ b/xrdp/xrdp_login_wnd.c @@ -323,17 +323,17 @@ xrdp_wm_ok_clicked(struct xrdp_bitmap* wnd) } if (!wm->pro_layer->term) { + /* 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); for (i = 0; i < names->count; i++) { wm->mod->mod_set_param(wm->mod, (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) { |