[PATCH weston v2 3/5] compositor: Emit wl_pointer_gesture_* events on libinput gesture events

Bill Spitzak spitzak at gmail.com
Wed Jul 29 18:38:10 PDT 2015


On Wed, Jul 29, 2015 at 6:02 PM, Jonas Ã…dahl <jadahl at gmail.com> wrote:

>
> We are not going to just provide libinput events via Wayland. It simply
> doesn't work. Also the Wayland protocol is different and needs to be
> different because it has to deal with protocol objects, destruction etc.
>

What I meant is that there would be a wayland protocol object (perhaps
wl_pointer_gestures) and it would deliver a wayland-style event
(wl_gesture_event), but the contents of the event would be a copy of the
libinput_gesture_event fields, including the enumeration saying what
gesture it is and whether it is a begin or end. It seems that the current
design means that every time a new gesture is added to libinput, the
wayland server will need to be rewritten to pass that new event through,
and so would every intermediate library such as toolkits. Also it is
producing a lot of code bloat (every new method and protocol object and
event adds a fairly large table to the api library, especially libraries
written for languages other than C) and the possibilities of mistakes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20150729/909813f2/attachment.html>


More information about the wayland-devel mailing list