Merged 48131 from trunk:

Use one run-loop observer for all synthesis of mouse moved events instead of a separate observer for each view.
Actually check the last mouse position and don't send synthesized events if the mouse hasn't moved.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@48133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2007-08-16 17:58:41 +00:00
parent bf0bb41e04
commit acc7223944
2 changed files with 128 additions and 31 deletions

View File

@@ -14,6 +14,8 @@
#include <CoreFoundation/CFRunLoop.h>
#define wxTRACE_COCOA_TrackingRect wxT("COCOA_TrackingRect")
class wxCocoaTrackingRectManager
{
DECLARE_NO_COPY_CLASS(wxCocoaTrackingRectManager)
@@ -30,7 +32,6 @@ protected:
wxWindow *m_window;
bool m_isTrackingRectActive;
int m_trackingRectTag;
CFRunLoopObserverRef m_runLoopObserver;
private:
wxCocoaTrackingRectManager();
};