Hi Peter,

I have checked the libinput implementation and, correct me if I'm wrong, I
have seen that 2 fingers click is interpreted as right click, 3 fingers
click is  interpreted as middle click and there are some special rules for
specified trackpads, like corner clicks.

Does that mean that the other MT events are not sent to the clients? Could
it be possible to get the 2 fingers pinch gesture from a QML client for
example?
So mainly my question is: is it possible to port (
https://code.google.com/p/touchegg/) as a wayland compositor, for example
to manage desktop specified gestures, and still use client gestures like
pinch and zoom?

By the way, I compiled Wayland/Weston as specified here:
http://wayland.freedesktop.org/building.html

And QtWayland as specified here:
http://wayland.freedesktop.org/qt5.html

But I don't see any references to the forked libinput library. Does that
mean that I should compile libinput and recompile Wayland/Weston against
this library instead of the system one?

I'm sorry for all the questions, but I didn't find any documentation about
that.


2014-06-02 4:30 GMT+01:00 Peter Hutterer <peter.hutte...@who-t.net>:

> On Sun, Jun 01, 2014 at 11:38:02PM +0100, José Expósito wrote:
> > Hi Daniel,
> >
> > I'm asking because I'm the author of this tool:
> > https://code.google.com/p/touchegg/
> >
> > That is exactly what you mention but for X11. So I'd like to port it to
> > Wayland if it is possible of course.
> >
> > > The intention was to reserve trackpad
> > > gestures for a gesture interpreter
> > > which lives in the compositor and is
> > > properly integrated with, e.g., scrolling
> > > and tap-to-click.
> >
> > Does this mean that it is possible to get multi touch gestures in the
> > compositor at the moment?
> > Will or is it possible to use both approach? I mean, get system gestures
> in
> > the compositor and app specified gestures in the clients, like in OS X.
>
> the input stack in weston atm is that you get touch events from a
> direct-touch MT device raw and unprocessed (save for mapping), but for
> touchpads some input events are interpreted by the stack (libinput or
> evdev-touchpad.c) and then passed on as pointer events, you don't see the
> MT
> bits of those.
>
> Cheers,
>    Peter
>
>
> > Thank you very much!
> >  El 01/06/2014 23:24, "Daniel Stone" <dan...@fooishbar.org> escribió:
> >
> > > Hi,
> > >
> > >
> > > On 1 June 2014 02:03, José Expósito <jose.exposit...@gmail.com> wrote:
> > >
> > >> And I say more or less because it is necessary to put 3 fingers on the
> > >> trackpad to start moving the rectangles...
> > >> Anyway, the program is not working on Weston. My question is, is that
> > >> because Weston doesn't implement multitouch support or because Wayland
> > >> doesn't support it at the moment? Could it be possible to implement
> > >> multitouch support in a custom compositor?
> > >>
> > >
> > > Wayland doesn't (currently) support touchpad gestures for arbitrary
> > > clients; trying to do it for X11 uncovered a whole host of really
> subtle
> > > and annoying issues. The intention was to reserve trackpad gestures
> for a
> > > gesture interpreter which lives in the compositor and is properly
> > > integrated with, e.g., scrolling and tap-to-click.
> > >
> > > Can I ask if you had a specific usecase in mind?
> > >
> > > Cheers,
> > > Daniel
> > >
>
> > _______________________________________________
> > wayland-devel mailing list
> > wayland-devel@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>
>
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to