Merge pull request #364 from laigor/devel

Allows use the xkb options that for example allows you to specify a key combination to change the layouts.
This commit is contained in:
metalefty 2016-08-30 09:28:25 +09:00 committed by GitHub
commit b934e55fc8

View File

@ -338,6 +338,15 @@ xrdp_load_keyboard_layout(struct xrdp_client_info *client_info)
g_strncpy(client_info->variant, value, bytes - 1);
}
}
else if (g_strcasecmp(item, "options") == 0)
{
if (section_found != -1 && section_found == index)
{
bytes = sizeof(client_info->options);
g_memset(client_info->options, 0, bytes);
g_strncpy(client_info->options, value, bytes - 1);
}
}
else
{
/*