Browse Source

total hack to help find a race.. must remove later

Roger Hughston 18 years ago
parent
commit
f87df647a8
1 changed files with 6 additions and 0 deletions
  1. 6 0
      panda/src/osxdisplay/osxGraphicsWindow.mm

+ 6 - 0
panda/src/osxdisplay/osxGraphicsWindow.mm

@@ -14,6 +14,8 @@
 ////////////////////////////////////////////////////////////////////
 #include <Carbon/Carbon.h>
 #include <Cocoa/Cocoa.h>
+#include <unistd.h>
+
 
 #include "osxGraphicsWindow.h"
 #include "config_osxdisplay.h"
@@ -29,6 +31,7 @@
 #include "virtualFileSystem.h"
 #include "config_util.h"
 
+
 #include <OpenGL/gl.h>
 #include <AGL/agl.h>
 #include <ApplicationServices/ApplicationServices.h>
@@ -952,6 +955,9 @@ bool osxGraphicsWindow::OSOpenWindow(WindowProperties &req_properties)
 //		err = CPSSetFrontProcess(&PSN);
 	}
 
+// total hack to help find a race.. must remove later
+    usleep( 1000000 * 2);
+
 	if (req_properties.has_fullscreen() && req_properties.get_fullscreen())
 	{
 		osxdisplay_cat.info() << "Creating full screen\n";