]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/nonownedwnd.mm
Fix typo in wxSlider XRC format documentation.
[wxWidgets.git] / src / osx / cocoa / nonownedwnd.mm
index 229e7442302c71ffbfbd32e23cc403fff3a77c84..a11208f4ada25e931aff6db2b03815e940e5a602 100644 (file)
@@ -126,6 +126,20 @@ bool shouldHandleSelector(SEL selector)
             ((wxWidgetCocoaImpl*)cw->GetPeer())->DoHandleMouseEvent( event);
             handled = true;
         }
+        else if ( [event type] == NSMouseMoved )
+        {
+            NSPoint nsPoint = [event locationInWindow];
+            if ( [event window] != nil )
+                nsPoint = [[event window] convertBaseToScreen:nsPoint];
+
+            wxPoint pt = wxFromNSPoint(NULL, nsPoint);
+            wxWindow* mw = ::wxFindWindowAtPoint(pt);
+            if ( mw )
+            {
+                ((wxWidgetCocoaImpl*)mw->GetPeer())->DoHandleMouseEvent( event);
+                handled = true;
+            }
+        }
     }
     return handled;
 }