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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hey,

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.
> > > Linux clients use VD_AGENT_KEYBOARD_DESCRIPTION_XKB,
> > > windows clients use VD_AGENT_KEYBOARD_DESCRIPTION_WINDOWS.
> > 
> > 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
dconf
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.

Christophe

Attachment: pgpWk0s5iD7F8.pgp
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]