[PATCH] toytoolkit: supply correct widget in motion_handler callback

Kristian Høgsberg hoegsberg at gmail.com
Tue Sep 4 13:21:20 PDT 2012


On Sat, Sep 01, 2012 at 04:21:40PM +0200, Philipp Brüschweiler wrote:
> ---
>  clients/window.c | 2 +-
>  1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-)

Ah yes, nice catch.  Committed.

Kristian

> diff --git a/clients/window.c b/clients/window.c
> index 4ddbd2f..330d96f 100644
> --- a/clients/window.c
> +++ b/clients/window.c
> @@ -2013,7 +2013,7 @@ pointer_handle_motion(void *data, struct wl_pointer *pointer,
>  	else
>  		widget = input->focus_widget;
>  	if (widget && widget->motion_handler)
> -		cursor = widget->motion_handler(input->focus_widget,
> +		cursor = widget->motion_handler(widget,
>  						input, time, sx, sy,
>  						widget->user_data);
>  
> -- 
> 1.7.12
> 
> _______________________________________________
> 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