toytoolkit: supply correct widget in motion_handler callback
This commit is contained in:
committed by
Kristian Høgsberg
parent
067abf67cd
commit
8c9c8fcf6e
+1
-1
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user