[PATCH] Add protocol support for wl_shell_surface_touch_move

Daniel Stone daniel at fooishbar.org
Wed Aug 14 14:24:33 PDT 2013


Hi,

On 14 August 2013 22:13, Rusty Lynch <rusty.lynch at intel.com> wrote:
> I couldn't find a way to determine if the move request was triggered for
> touch or mouse events.

Serial numbers are unique per-display.  So there's no possibility for
collision: a serial will either be for a button press, a key press, a
touch down, or can be rejected as invalid.

Cheers,
Daniel

>     --rusty
> On Wed, 2013-08-14 at 16:09 -0500, Jason Ekstrand wrote:
>> Rusty,
>> Is there a particular reason for adding another request that's
>> basically identical to "move"?  Couldn't we just bump the protocol
>> version and allow the clients to respond to touch events with a move
>> request? The compositor could sort out what kind of event it is based
>> on the serial.
>>
>> --Jason Ekstrand
>>
>>
>> On Aug 14, 2013 12:51 PM, "Rusty Lynch" <rusty.lynch at intel.com> wrote:
>> >
>> > From d1d0df0688650ea23a1c5c788f7d7bbf3e7e034c Mon Sep 17 00:00:00
>> 2001
>> > From: Rusty Lynch <rusty.lynch at intel.com>
>> > Date: Wed, 14 Aug 2013 08:06:39 -0700
>> > Subject: [PATCH] Add protocol support for
>> wl_shell_surface_touch_move
>> >
>> > ---
>> >  protocol/wayland.xml | 12 ++++++++++++
>> >  1 file changed, 12 insertions(+)
>> >
>> > diff --git a/protocol/wayland.xml b/protocol/wayland.xml
>> > index d7bbbb9..b106dcf 100644
>> > --- a/protocol/wayland.xml
>> > +++ b/protocol/wayland.xml
>> > @@ -916,6 +916,18 @@
>> >        <arg name="class_" type="string"/>
>> >      </request>
>> >
>> > +    <request name="touch_move">
>> > +      <description summary="start an interactive touch based move">
>> > +       Start a touch-driven move of the surface.
>> > +
>> > +       This request must be used in response to a touch down event.
>> > +       The server may ignore move requests depending on the state
>> of
>> > +       the surface (e.g. fullscreen or maximized).
>> > +      </description>
>> > +      <arg name="seat" type="object" interface="wl_seat"
>> summary="the wl_seat associated with the touch"/>
>> > +      <arg name="serial" type="uint" summary="serial of the
>> implicit grab on the touch"/>
>> > +    </request>
>> > +
>> >      <event name="ping">
>> >        <description summary="ping client">
>> >         Ping a client to check if it is receiving events and sending
>> > --
>> > 1.8.3.1
>> >
>> >
>> >
>> > _______________________________________________
>> > wayland-devel mailing list
>> > wayland-devel at lists.freedesktop.org
>> > http://lists.freedesktop.org/mailman/listinfo/wayland-devel
>>
>>
>
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list