vaapisink: fix GstNavigation "mouse-move" event.

Really use the motion event coordinates to propagate the "mouse-move"
event to upper layer, instead of those from a button event. Those are
technically the same though.
This commit is contained in:
Gwenole Beauchesne 2014-09-24 13:23:17 +02:00
parent 33212d9634
commit 039244bf77

View file

@ -359,7 +359,7 @@ gst_vaapisink_x11_handle_events (GstVaapiSink * sink)
if (pointer_moved) { if (pointer_moved) {
gst_vaapi_display_lock (display); gst_vaapi_display_lock (display);
gst_navigation_send_mouse_event (GST_NAVIGATION (sink), gst_navigation_send_mouse_event (GST_NAVIGATION (sink),
"mouse-move", 0, e.xbutton.x, e.xbutton.y); "mouse-move", 0, pointer_x, pointer_y);
gst_vaapi_display_unlock (display); gst_vaapi_display_unlock (display);
} }