<div dir="ltr"><div><div>Hi Peter,</div><div><br></div><div>Thank you very much for your answers</div><div><br></div><div>> there are some special rules for clickpads, specifically a click with a</div><div>> finger resting on one of the software-button areas will produce a right</div>
<div>> or middle click.</div><div>> [...]</div><div>> eventually yes, but not at this point. as I said in the previous email you</div><div>> just won't have access to the data. I think a sensible solution here is to</div>
<div>> have libinput send semantic events like "pinch", "rotate", etc. and then</div><div>> have the compositor hook into those. the actual compositor part would be</div><div>> quite small and have no actual gesture recognition, that would be done</div>
<div>> inside libinput. but we're just not there yet.</div><div><br></div><div>Is a pity that the implementation plans are these... I mean, with this approach the clients will not be able to implement features like smooth scroll or the compositor will not be able to manage system gesture recognition or transform the behaviour of the trackpad to, for example ignore touches with the thumb (while is resting on the bottom of the clickpad) and use it to click while drag is enabled with the index finger. Plus it'll not be possible to port apps like Touchegg or BetterTouchTool (OS X).</div>
<div><br></div><div>Please don't misunderstand me, you guys are doing an *excellent* work with Wayland and libinput, I only would like to point that implementing this stuff in the clients, frameworks (Qt/GTK) and/or compositors could add some amazing features missing at the moment in the Linux desktop but present in compositors like SurfaceFlinger or the OS X compositor.</div>
<div><br></div><div>Maybe a flag to receive the touchpad input raw or processed could be a good solution to everyone.</div><div><br></div><div>> it's fairly new and the documentation hasn't been updated yet. configure</div>
<div>> weston with --enable-libinput-backend and that should get you started.</div><div><br></div><div>Thank you very much, I'm going to recompile this afternoon Weston to have a look to the libinput implementation</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-03 0:25 GMT+01:00 Peter Hutterer <span dir="ltr"><<a href="mailto:peter.hutterer@who-t.net" target="_blank">peter.hutterer@who-t.net</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="">On Mon, Jun 02, 2014 at 12:45:51PM +0100, José Expósito wrote:<br>
> Hi Peter,<br>
><br>
> I have checked the libinput implementation and, correct me if I'm wrong, I<br>
> have seen that 2 fingers click is interpreted as right click, 3 fingers<br>
> click is interpreted as middle click and there are some special rules for<br>
> specified trackpads, like corner clicks.<br>
<br>
</div>there are some special rules for clickpads, specifically a click with a<br>
finger resting on one of the software-button areas will produce a right<br>
or middle click.<br>
<div class=""><br>
> Does that mean that the other MT events are not sent to the clients? Could<br>
> it be possible to get the 2 fingers pinch gesture from a QML client for<br>
> example?<br>
<br>
</div>not from a touchpad, not at this point. There are some rough plans but we've<br>
pretty much deferred them until we had the basics sorted with libinput.<br>
<div class=""><br>
> So mainly my question is: is it possible to port (<br>
> <a href="https://code.google.com/p/touchegg/" target="_blank">https://code.google.com/p/touchegg/</a>) as a wayland compositor, for example<br>
> to manage desktop specified gestures, and still use client gestures like<br>
> pinch and zoom?<br>
<br>
</div>eventually yes, but not at this point. as I said in the previous email you<br>
just won't have access to the data. I think a sensible solution here is to<br>
have libinput send semantic events like "pinch", "rotate", etc. and then<br>
have the compositor hook into those. the actual compositor part would be<br>
quite small and have no actual gesture recognition, that would be done<br>
inside libinput. but we're just not there yet.<br>
<div class=""><br>
> By the way, I compiled Wayland/Weston as specified here:<br>
> <a href="http://wayland.freedesktop.org/building.html" target="_blank">http://wayland.freedesktop.org/building.html</a><br>
><br>
> And QtWayland as specified here:<br>
> <a href="http://wayland.freedesktop.org/qt5.html" target="_blank">http://wayland.freedesktop.org/qt5.html</a><br>
><br>
> But I don't see any references to the forked libinput library. Does that<br>
> mean that I should compile libinput and recompile Wayland/Weston against<br>
> this library instead of the system one?<br>
><br>
> I'm sorry for all the questions, but I didn't find any documentation about<br>
> that.<br>
<br>
</div>it's fairly new and the documentation hasn't been updated yet. configure<br>
weston with --enable-libinput-backend and that should get you started.<br>
<br>
Cheers,<br>
Peter<br>
<div class=""><div class="h5"><br>
> 2014-06-02 4:30 GMT+01:00 Peter Hutterer <<a href="mailto:peter.hutterer@who-t.net">peter.hutterer@who-t.net</a>>:<br>
><br>
> > On Sun, Jun 01, 2014 at 11:38:02PM +0100, José Expósito wrote:<br>
> > > Hi Daniel,<br>
> > ><br>
> > > I'm asking because I'm the author of this tool:<br>
> > > <a href="https://code.google.com/p/touchegg/" target="_blank">https://code.google.com/p/touchegg/</a><br>
> > ><br>
> > > That is exactly what you mention but for X11. So I'd like to port it to<br>
> > > Wayland if it is possible of course.<br>
> > ><br>
> > > > The intention was to reserve trackpad<br>
> > > > gestures for a gesture interpreter<br>
> > > > which lives in the compositor and is<br>
> > > > properly integrated with, e.g., scrolling<br>
> > > > and tap-to-click.<br>
> > ><br>
> > > Does this mean that it is possible to get multi touch gestures in the<br>
> > > compositor at the moment?<br>
> > > Will or is it possible to use both approach? I mean, get system gestures<br>
> > in<br>
> > > the compositor and app specified gestures in the clients, like in OS X.<br>
> ><br>
> > the input stack in weston atm is that you get touch events from a<br>
> > direct-touch MT device raw and unprocessed (save for mapping), but for<br>
> > touchpads some input events are interpreted by the stack (libinput or<br>
> > evdev-touchpad.c) and then passed on as pointer events, you don't see the<br>
> > MT<br>
> > bits of those.<br>
> ><br>
> > Cheers,<br>
> > Peter<br>
> ><br>
> ><br>
> > > Thank you very much!<br>
> > > El 01/06/2014 23:24, "Daniel Stone" <<a href="mailto:daniel@fooishbar.org">daniel@fooishbar.org</a>> escribió:<br>
> > ><br>
> > > > Hi,<br>
> > > ><br>
> > > ><br>
> > > > On 1 June 2014 02:03, José Expósito <<a href="mailto:jose.exposito89@gmail.com">jose.exposito89@gmail.com</a>> wrote:<br>
> > > ><br>
> > > >> And I say more or less because it is necessary to put 3 fingers on the<br>
> > > >> trackpad to start moving the rectangles...<br>
> > > >> Anyway, the program is not working on Weston. My question is, is that<br>
> > > >> because Weston doesn't implement multitouch support or because Wayland<br>
> > > >> doesn't support it at the moment? Could it be possible to implement<br>
> > > >> multitouch support in a custom compositor?<br>
> > > >><br>
> > > ><br>
> > > > Wayland doesn't (currently) support touchpad gestures for arbitrary<br>
> > > > clients; trying to do it for X11 uncovered a whole host of really<br>
> > subtle<br>
> > > > and annoying issues. The intention was to reserve trackpad gestures<br>
> > for a<br>
> > > > gesture interpreter which lives in the compositor and is properly<br>
> > > > integrated with, e.g., scrolling and tap-to-click.<br>
> > > ><br>
> > > > Can I ask if you had a specific usecase in mind?<br>
> > > ><br>
> > > > Cheers,<br>
> > > > Daniel<br>
> > > ><br>
> ><br>
> > > _______________________________________________<br>
> > > wayland-devel mailing list<br>
> > > <a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
> > > <a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
> ><br>
> ><br>
</div></div></blockquote></div><br></div></div>