[RFC] Device hierarchy for MPX

Daniel Stone daniel at fooishbar.org
Tue Sep 18 05:28:29 PDT 2007


On Tue, Sep 18, 2007 at 08:58:39PM +0930, Peter Hutterer wrote:
> Peter Hutterer wrote:
> > Slave devices (SD) are the actual physical devices. SD's attached to an
> > MD control the MD's cursor/focus and send core events. SD's can be
> > "floating" (not attached to an MD), but then do not have a sprite and do
> > not send core events. 
> 
> Going through the event delivery I did notice that there is one problem 
> with floating devices. Any keyboard in X needs to be paired with a 
> pointer device, otherwise we cannot generate appropriate events etc.

I think the correct thing to do for keyboards without a pointer focus is
to deliver at (0,0): either that or just pick a random focus.

> The options we have are:
> a) pairing a floating keyboard device to an MD. Although the SD never 
> affects the MD's sprite or event delivery, the MD nevertheless decides 
> where the events go (this is effectively the MPX version of the current 
> server behaviour).
> b) pairing a floating keyboard to a floating SD. This option requires a) 
> to work as well as a fallback.
> c) creating a virtual sprite for floating keyboard devices that never 
> moves by itself, unless forced through an API.
> 
> I guess b) is probably the best option.

Yeah, that makes the most sense at a first glance.

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


More information about the xorg mailing list