Keymap issues with Pointer+Keys device

Daniel Stone daniel at fooishbar.org
Tue Sep 23 16:12:48 PDT 2008


On Wed, Sep 24, 2008 at 08:13:01AM +0930, Peter Hutterer wrote:
> On Tue, Sep 23, 2008 at 08:36:13PM +0200, Sascha Hlusiak wrote:
> > > Note that if you're using core clients, this is "intended" behaviour.
> > > Remember that the ClientPointer (CP) always assigns a "primary" master
> > > device to a core client.
> > >
> > > So the call order is something like:
> > > Client requests keymap, server replies with CP's keymap.
> > > If you then hit a key on kbd 2, the server notifies the client that the
> > > keymap has changed.
> > > Client requests keymap, server replies with CP's keymap.
> > >
> > > oops.
> > >
> > > solution: fix the client :)
> > So, is xev 'broken' then?
> 
> yes, because it has to follow the same procedure. Only clients that use
> XGetDeviceKeymapping instead of XGetKeyboardMapping can work properly.

Maybe I'm missing something, but can we not do as SwitchCoreKeyboard
used to do, and have all requests for keymap/whatever act on the device
that last sent a key event to that client?

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20080924/cdef8d95/attachment.pgp>


More information about the xorg mailing list