[PATCH] toytoolkit: supply correct widget in motion_handler callback
Philipp Brüschweiler
blei42 at gmail.com
Sat Sep 1 07:21:40 PDT 2012
---
clients/window.c | 2 +-
1 Datei geändert, 1 Zeile hinzugefügt(+), 1 Zeile entfernt(-)
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);
--
1.7.12
More information about the wayland-devel
mailing list