[PATCH weston] desktop-shell: use weston_pointer_send_axis

Jonas Ã…dahl jadahl at gmail.com
Sun Nov 15 20:45:44 PST 2015


On Mon, Nov 16, 2015 at 12:35:57PM +1000, Peter Hutterer wrote:
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Reviewed-by and pushed, thanks:

To ssh://jadahl@git.freedesktop.org/git/wayland/weston
   64d78bb..1118952  master -> master


Jonas

> ---
>  desktop-shell/shell.c | 8 +-------
>  1 file changed, 1 insertion(+), 7 deletions(-)
> 
> diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
> index 52d1195..9968307 100644
> --- a/desktop-shell/shell.c
> +++ b/desktop-shell/shell.c
> @@ -3303,13 +3303,7 @@ static void
>  popup_grab_axis(struct weston_pointer_grab *grab,
>  		uint32_t time, uint32_t axis, wl_fixed_t value)
>  {
> -	struct weston_pointer *pointer = grab->pointer;
> -	struct wl_resource *resource;
> -	struct wl_list *resource_list;
> -
> -	resource_list = &pointer->focus_resource_list;
> -	wl_resource_for_each(resource, resource_list)
> -		wl_pointer_send_axis(resource, time, axis, value);
> +	weston_pointer_send_axis(grab->pointer, time, axis, value);
>  }
>  
>  static void
> -- 
> 2.4.3
> 
> _______________________________________________
> 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