From 8c9c8fcf6e294f0446446d8e9bdfeb37294743c3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philipp=20Br=C3=BCschweiler?= Date: Sat, 1 Sep 2012 16:21:40 +0200 Subject: [PATCH] toytoolkit: supply correct widget in motion_handler callback --- clients/window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.7.4