[PATCH weston] window: Always pass focused widget to widget motion handlers

Kristian Høgsberg hoegsberg at gmail.com
Fri Oct 19 13:52:30 PDT 2012


On Fri, Oct 19, 2012 at 07:56:02PM +0200, Jonas Ådahl wrote:
> Grabbed widgets should always receive motion events as if it was the
> widget that would receive it if no grab was active. This means that the
> focused widget should always be passed as the widget argument to widget
> motion handlers.
> 
> This reverts commit 8c9c8fcf6e294f0446446d8e9bdfeb37294743c3.

Yup, back to working again.

Kristian

> Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
> ---
>  clients/window.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/clients/window.c b/clients/window.c
> index 36901d5..380962c 100644
> --- a/clients/window.c
> +++ b/clients/window.c
> @@ -2095,7 +2095,7 @@ pointer_handle_motion(void *data, struct wl_pointer *pointer,
>  	else
>  		widget = input->focus_widget;
>  	if (widget && widget->motion_handler)
> -		cursor = widget->motion_handler(widget,
> +		cursor = widget->motion_handler(input->focus_widget,
>  						input, time, sx, sy,
>  						widget->user_data);
>  
> -- 
> 1.7.9.5
> 
> _______________________________________________
> 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