toytoolkit: supply correct widget in motion_handler callback

This commit is contained in:
Philipp Brüschweiler
2012-09-01 16:21:40 +02:00
committed by Kristian Høgsberg
parent 067abf67cd
commit 8c9c8fcf6e
+1 -1
View File
@@ -2013,7 +2013,7 @@ pointer_handle_motion(void *data, struct wl_pointer *pointer,
else else
widget = input->focus_widget; widget = input->focus_widget;
if (widget && widget->motion_handler) if (widget && widget->motion_handler)
cursor = widget->motion_handler(input->focus_widget, cursor = widget->motion_handler(widget,
input, time, sx, sy, input, time, sx, sy,
widget->user_data); widget->user_data);