[Spice-devel] [PATCH spice-protocol v3] vdagent: add keyboard description message

Marc-André Lureau mlureau at redhat.com
Thu Nov 6 01:39:06 PST 2014



----- Original Message -----
> The goal of this message is to make the guest use the same keyboard
> layout as the client. In other words to remove the necessity to manually
> configure the keyboard layout on the guest.
> 
> We can achieve this functionality by informing the agent about
> the keyboard layout used by the client. The agent then tries to set
> the appropriate keyboard layout on the guest side.
> 
> The message is represented by a xkb symbols string (e.g. "pc+us",

ack

> basically it contains an abbreviation of the country name
> and some other options). Linux agent can use this string directly,
> windows agent has to find a keyboard layout for the specified country name.
> 
> RFE: https://bugs.freedesktop.org/show_bug.cgi?id=85332
> ---
> v3:
>  - commit log changed
> v2:
>  - the message is a string which is based on xkb symbols or on windows locale
>    (eg "pc+us+inet(evdev)")
> ---
>  spice/vd_agent.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/spice/vd_agent.h b/spice/vd_agent.h
> index 7464661..4dacb25 100644
> --- a/spice/vd_agent.h
> +++ b/spice/vd_agent.h
> @@ -77,6 +77,7 @@ enum {
>      VD_AGENT_FILE_XFER_DATA,
>      VD_AGENT_CLIENT_DISCONNECTED,
>      VD_AGENT_MAX_CLIPBOARD,
> +    VD_AGENT_KEYBOARD_DESCRIPTION,
>      VD_AGENT_END_MESSAGE,
>  };
>  
> --
> 1.9.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list