]> git.saurik.com Git - wxWidgets.git/commitdiff
Emit wxSetCursorEvent before mouse move and
authorRobert Roebling <robert@roebling.de>
Wed, 22 Feb 2006 23:36:32 +0000 (23:36 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 22 Feb 2006 23:36:32 +0000 (23:36 +0000)
   mouse enter.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/window.cpp

index d98386fe20a204b536696ccea1d1e88a3985908e..4dbeb3449891dc24b43bb133d36c9f7f9a94d8f6 100644 (file)
@@ -1739,6 +1739,15 @@ static gint gtk_window_motion_notify_callback( GtkWidget *widget,
         win = FindWindowForMouseEvent(win, event.m_x, event.m_y);
     }
 
+    if ( !g_captureWindow )
+    {
+        wxSetCursorEvent cevent( event.m_x, event.m_y );
+        if (win->GetEventHandler()->ProcessEvent( cevent ))
+        {
+            // Rewrite cursor handling here (away from idle).
+        }
+    }
+    
     if (win->GetEventHandler()->ProcessEvent( event ))
     {
         g_signal_stop_emission_by_name (widget, "motion_notify_event");
@@ -1996,6 +2005,15 @@ gtk_window_enter_callback( GtkWidget *widget,
     event.m_x = x + pt.x;
     event.m_y = y + pt.y;
 
+    if ( !g_captureWindow )
+    {
+        wxSetCursorEvent cevent( event.m_x, event.m_y );
+        if (win->GetEventHandler()->ProcessEvent( cevent ))
+        {
+            // Rewrite cursor handling here (away from idle).
+        }
+    }
+    
     if (win->GetEventHandler()->ProcessEvent( event ))
     {
        g_signal_stop_emission_by_name (widget, "enter_notify_event");