toytoolkit: supply correct widget in motion_handler callback
authorPhilipp Brüschweiler <blei42@gmail.com>
Sat, 1 Sep 2012 14:21:40 +0000 (16:21 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 4 Sep 2012 19:56:37 +0000 (15:56 -0400)
clients/window.c

index 4ddbd2f..330d96f 100644 (file)
@@ -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);