[PATCH xwayland 2/3] xwayland: give axis basic support

Daniel Stone daniel at fooishbar.org
Mon May 7 07:38:05 PDT 2012


Hi,

On 7 May 2012 14:49, Tiago Vignatti <tiago.vignatti at linux.intel.com> wrote:
> On 05/07/2012 04:00 PM, Daniel Stone wrote:
>> On 7 May 2012 13:04, Tiago Vignatti<tiago.vignatti at intel.com>  wrote:
>>> A remark about the "funny" X server's interface, that has to be called
>>> twice
>>> for queuing up events. Anyways, now I got Firefox with scrolling<3
>>
>> Actually, if you set yourself up with a scroll axis, you only have to
>> call it once rather than treating it like a button, and you get
>> greater granularity. :)
>
> oh, how so? Is there any snips of code you can point out?

Unfortunately Synaptics isn't the most straight-forward example, but:
http://cgit.freedesktop.org/xorg/driver/xf86-input-synaptics/tree/src/synaptics.c#n1397
http://cgit.freedesktop.org/xorg/driver/xf86-input-synaptics/tree/src/synaptics.c#n2881

That handles the button emulation for you in the server, so you just
post one axis event and it works across all clients.

Cheers,
Daniel


More information about the wayland-devel mailing list