diff options
author | Steve Fryatt <stevef@netsurf-browser.org> | 2014-04-05 19:59:07 +0100 |
---|---|---|
committer | Steve Fryatt <stevef@netsurf-browser.org> | 2014-04-05 19:59:07 +0100 |
commit | 99c47eb99be4309e996f4cb038916260fd2bcb44 (patch) | |
tree | b4226d0407df0f1e2f89fb49d94266292175fb60 /riscos/mouse.h | |
parent | f0f05d691ba748314e57da754518dfbad6a7a339 (diff) | |
download | netsurf-99c47eb99be4309e996f4cb038916260fd2bcb44.tar.gz netsurf-99c47eb99be4309e996f4cb038916260fd2bcb44.tar.bz2 |
Allow mouse tracking events to terminate without a PointerLeaving event being received.
This change should handle the situation where a PointerEntering event is received without a corresponding PointerLeaving event, which appears to be caused by some third-party OS addons. This could cause unexpected consequences, so all such terminations are currently logged.
Diffstat (limited to 'riscos/mouse.h')
-rw-r--r-- | riscos/mouse.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/riscos/mouse.h b/riscos/mouse.h index bcb3b50bd..8a7405a2f 100644 --- a/riscos/mouse.h +++ b/riscos/mouse.h @@ -65,9 +65,11 @@ void ro_mouse_drag_end(wimp_dragged *dragged); * Start tracking the mouse in a window, providing a function to be called on * null polls and optionally one to be called when it leaves the window. * - * \param *drag_end Callback for when the pointer leaves the window, or - * NULL for none. - * \param *drag_track Callback for mouse tracking while the pointer remains + * \param *poll_end Callback for when the pointer leaves the window, or + * NULL for none. Claimants can receive *leaving==NULL if + * a new tracker is started before a PointerLeaving event + * is received. + * \param *poll_track Callback for mouse tracking while the pointer remains * in the window, or NULL for none. * \param *data Data to be passed to the callback functions, or NULL. */ |