Revision: 37395
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37395
Author:   merwin
Date:     2011-06-11 00:58:49 +0000 (Sat, 11 Jun 2011)
Log Message:
-----------
one small change -- SpaceNav works on Windows

Modified Paths:
--------------
    branches/merwin-spacenav/intern/ghost/intern/GHOST_SystemWin32.cpp

Modified: branches/merwin-spacenav/intern/ghost/intern/GHOST_SystemWin32.cpp
===================================================================
--- branches/merwin-spacenav/intern/ghost/intern/GHOST_SystemWin32.cpp  
2011-06-11 00:25:48 UTC (rev 37394)
+++ branches/merwin-spacenav/intern/ghost/intern/GHOST_SystemWin32.cpp  
2011-06-11 00:58:49 UTC (rev 37395)
@@ -266,6 +266,7 @@
                        // Store the pointer to the window
 //                     if (state != GHOST_kWindowStateFullScreen) {
                                m_windowManager->addWindow(window);
+                               m_windowManager->setActiveWindow(window);
 //                     }
                }
                else {
@@ -786,7 +787,15 @@
 
 GHOST_Event* GHOST_SystemWin32::processWindowEvent(GHOST_TEventType type, 
GHOST_IWindow* window)
 {
-       return new GHOST_Event(getSystem()->getMilliSeconds(), type, window);
+       GHOST_System* system = (GHOST_System*)getSystem();
+
+       if (type == GHOST_kEventWindowActivate)
+               {
+               puts("activating window");
+               system->getWindowManager()->setActiveWindow(window);
+               }
+
+       return new GHOST_Event(system->getMilliSeconds(), type, window);
 }
 
 GHOST_TSuccess GHOST_SystemWin32::pushDragDropEvent(GHOST_TEventType 
eventType, 

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to