Re: [PATCH wayland-protocols] pointer-gestures: add a destroy request

2019-01-27 Thread Jonas Ã…dahl
IIRC you need to call the request something else (e.g. release, used in
similar situations), as wayland-scanner already generated the destructor
zwp_pointer_gestures_v1_destroy() which doesn't make any request but
still destructs client side.

When we move to the protocol to stable, we can name it destroy()
however.


Jonas

On Sun, Jan 27, 2019 at 03:42:08PM +, Simon Ser wrote:
> This allows clients to destroy a gesture object before they disconnect.
> 
> Signed-off-by: Simon Ser 
> ---
>  .../pointer-gestures-unstable-v1.xml| 13 ++---
>  1 file changed, 10 insertions(+), 3 deletions(-)
> 
> diff --git a/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml 
> b/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml
> index 5b7132c..023601f 100644
> --- a/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml
> +++ b/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml
> @@ -1,7 +1,7 @@
>  
>  
>  
> -  
> +  
>  
>A global interface to provide semantic touchpad gestures for a given
>pointer.
> @@ -37,9 +37,16 @@
>
>
>  
> +
> +
> +  
> + Destroy the pointer gesture object. Swipe and pinch objects created via 
> this
> + gesture object remain valid.
> +  
> +
>
>  
> -  
> +  
>  
>A swipe gesture object notifies a client about a multi-finger swipe
>gesture detected on an indirect input device such as a touchpad.
> @@ -102,7 +109,7 @@
>  
>
>  
> -  
> +  
>  
>A pinch gesture object notifies a client about a multi-finger pinch
>gesture detected on an indirect input device such as a touchpad.
> -- 
> 2.20.1
> 
> 
> ___
> wayland-devel mailing list
> wayland-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel


[PATCH wayland-protocols] pointer-gestures: add a destroy request

2019-01-27 Thread Simon Ser
This allows clients to destroy a gesture object before they disconnect.

Signed-off-by: Simon Ser 
---
 .../pointer-gestures-unstable-v1.xml| 13 ++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml 
b/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml
index 5b7132c..023601f 100644
--- a/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml
+++ b/unstable/pointer-gestures/pointer-gestures-unstable-v1.xml
@@ -1,7 +1,7 @@
 
 
 
-  
+  
 
   A global interface to provide semantic touchpad gestures for a given
   pointer.
@@ -37,9 +37,16 @@
   
   
 
+
+
+  
+   Destroy the pointer gesture object. Swipe and pinch objects created via 
this
+   gesture object remain valid.
+  
+
   
 
-  
+  
 
   A swipe gesture object notifies a client about a multi-finger swipe
   gesture detected on an indirect input device such as a touchpad.
@@ -102,7 +109,7 @@
 
   
 
-  
+  
 
   A pinch gesture object notifies a client about a multi-finger pinch
   gesture detected on an indirect input device such as a touchpad.
-- 
2.20.1


___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel