Merge pull request #417 from metalefty/apply-keyboard-options

Apply xkb options for x11rdp
master
metalefty 8 years ago committed by GitHub
commit ba78399122

@ -236,7 +236,9 @@ xrdp_load_keyboard_layout(struct xrdp_client_info *client_info)
char keyboard_cfg_file[256] = { 0 }; char keyboard_cfg_file[256] = { 0 };
char rdp_layout[256] = { 0 }; char rdp_layout[256] = { 0 };
LLOGLN(0, ("xrdp_load_keyboard_layout:")); LLOGLN(0, ("xrdp_load_keyboard_layout: keyboard_type [%d] keyboard_subtype [%d]",
client_info->keyboard_type, client_info->keyboard_subtype));
/* infer model/variant */ /* infer model/variant */
/* TODO specify different X11 keyboard models/variants */ /* TODO specify different X11 keyboard models/variants */
g_memset(client_info->model, 0, sizeof(client_info->model)); g_memset(client_info->model, 0, sizeof(client_info->model));
@ -422,8 +424,8 @@ xrdp_load_keyboard_layout(struct xrdp_client_info *client_info)
list_delete(values); list_delete(values);
LLOGLN(0, ("xrdp_load_keyboard_layout: model [%s] variant [%s] " LLOGLN(0, ("xrdp_load_keyboard_layout: model [%s] variant [%s] "
"layout [%s]", client_info->model, client_info->variant, "layout [%s] options [%s]", client_info->model,
client_info->layout)); client_info->variant, client_info->layout, client_info->options));
g_file_close(fd); g_file_close(fd);
} }
else else

@ -325,6 +325,10 @@ rdpLoadLayout(struct xrdp_client_info *client_info)
{ {
set.layout = client_info->layout; set.layout = client_info->layout;
} }
if (strlen(client_info->options) > 0)
{
set.options = client_info->options;
}
retry: retry:
/* free some stuff so we can call InitKeyboardDeviceStruct again */ /* free some stuff so we can call InitKeyboardDeviceStruct again */

Loading…
Cancel
Save