[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg
Subject:    Re: upcoming xi2 and current XTest implementation
From:       Simon Thum <simon.thum () gmx ! de>
Date:       2009-05-30 8:03:06
Message-ID: 4A20E83A.4080101 () gmx ! de
[Download RAW message or body]

Peter Hutterer wrote:
> On Fri, May 29, 2009 at 03:42:02PM +0200, Simon Thum wrote:
>> I wonder if one couldn't just do a Xi1 XOpenDevice() to 'convert'  
>> Id->Device* ? Any known reasons?
> 
> I'm not sure I understand what you mean, but
> - XOpenDevice() is an XI 1 call and I really encourage not to mix XI1 and
>   XI2.
> - XOpenDevice() does and can only do 8 bit deviceids
> - XOpenDevice() is actually a protocol request (that also performs stuff
>   such as enabling the opened device on the server) so it's quite expensive
>   for simply an ID conversion
> - XOpenDevice() can result in BadDevice errors, especially for the VCP/VCK.
I guess that counts as 'known reasons' :) Especially #2 and #4 are new 
to me.

Thanks,

Simon

> 
> 
> Cheers,
>   Peter
> 

_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic