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

Christophe Fergeau cfergeau at redhat.com
Tue Nov 4 04:26:59 PST 2014


On Mon, Nov 03, 2014 at 04:05:26AM -0500, Pavel Grunt wrote:
> > ----- Original Message -----
> > > The message will be used for transferring the keyboard layout
> > > from the client to the guest. When the agent receives this message,
> > > it tries to set the specified keyboard layout.
> > > 
> > > https://bugs.freedesktop.org/show_bug.cgi?id=85332
> > > ---
> > > VDAgentMessage will be used for the transfer, the type of the
> > > message depends
> > > on a client.
> > 
> > Can you be more explicit about the content of the message? How do you
> > transfer the keyboard layout?
> > 
> xkb client: the content is a string having information similar like running 'setxkbmap -print'.
> windows client: the content is based on GetKeyboardLayoutName function which returns 
> a device identifier and a language identifier (eg 0x0409 for us english).

Hmm on Windows it seems you will need a list of devices/languages if you
want to be able to sync everything for people with multiple layouts.
In the xkb case, GNOME uses a much shorter description than the whole
output of setxkbmap -print, see /org/gnome/desktop/input-sources/ in
I don't know how this works on wayland.

As long as it's possible to add more layout types/more fields to a given
layout type, I guess it's good enough for now to go with a list of short
strings (like GNOME) in the xkb case.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20141104/e3373c55/attachment.sig>

More information about the Spice-devel mailing list