[PATCH RFC inputproto] Use flags for smooth scrolling, not axis labels.

Peter Hutterer peter.hutterer at who-t.net
Mon Aug 15 04:40:55 PDT 2011


On 15/08/11 21:09 , Daniel Stone wrote:
> Hi,
> Looks good to me generally, but:
>
> On Mon, Aug 15, 2011 at 03:28:03PM +1000, Peter Hutterer wrote:
>> +Newer X servers may provide scrolling information through specific
>> +valuators to provide scroll events with more precision than the button
>> +events. Valuators for axes sending scrolling information should have the
>> +VertScroll or HorizScroll axis flag set. Devices that do not have scrolling
>> +axes may label emulated scrolling axes with the 'Rel Vert Scroll' and 'Rel
>> +Horiz Scroll' axis labels. These axes must also have the VertScroll or
>> +HorizScroll axis flag set to mark them as scrolling valuators.
>
> Hm, might be best to just leave the names out completely and let the
> server pick whichever name it feels like.

fair enough. we can still leave the names in the server, just remove 
them from the protocol. synaptics does need virtual axes after all.

>> +The behavior of the server if there is more than one VertScroll or more than
>> +one HorizScroll axes on the same device is undefined.
>
> Hmm, howso?

if you have two VertScroll axes, which one do you emulate button press 
events on? I bet in our implementation it'll just be the first one, but 
do we need to force this in the protocol? or just claim it's 
implementation-defined?

it only affects emulation, I agree that needs to be clarified better.

Cheers,
   Peter


More information about the xorg-devel mailing list