]> git.saurik.com Git - wxWidgets.git/commitdiff
trying to solve cursor update problems with AUI, refs #15072
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 10 Mar 2013 14:20:36 +0000 (14:20 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 10 Mar 2013 14:20:36 +0000 (14:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/window.mm
src/osx/window_osx.cpp

index 829674fbb8a6d10814322a32a6b2566b6967c690..f1e8142835c0ea48c2a0a7c688914c8d1388d323 100644 (file)
@@ -1227,9 +1227,14 @@ bool wxWidgetCocoaImpl::SetupCursor(WX_NSEvent event)
         
         while ( cursorTarget && !cursorTarget->MacSetupCursor( cursorPoint ) )
         {
+            // at least in GTK cursor events are not propagated either ...
+#if 1
+            cursorTarget = NULL;
+#else
             cursorTarget = cursorTarget->GetParent() ;
             if ( cursorTarget )
                 cursorPoint += cursorTarget->GetPosition();
+#endif
         }
         
         return cursorTarget != NULL;
index 7fd9f067d95a2537e3d709688b5062669d085148..d7ef17acce5cb39ae1806f35152d747c74b49a15 100644 (file)
@@ -1814,6 +1814,8 @@ bool wxWindowMac::MacSetupCursor( const wxPoint& pt )
     if ( wxRect2DInt( clientorigin.x , clientorigin.y , clientsize.x , clientsize.y ).Contains( wxPoint2DInt( pt ) ) )
     {
         wxSetCursorEvent event( pt.x , pt.y );
+        event.SetId(GetId());
+        event.SetEventObject(this);
 
         bool processedEvtSetCursor = HandleWindowEvent(event);
         if ( processedEvtSetCursor && event.HasCursor() )