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

This commit is contained in:
Roger Hughston 2007-10-24 04:03:29 +00:00
parent 5dde973966
commit f87df647a8

View File

@ -14,6 +14,8 @@
//////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////
#include <Carbon/Carbon.h> #include <Carbon/Carbon.h>
#include <Cocoa/Cocoa.h> #include <Cocoa/Cocoa.h>
#include <unistd.h>
#include "osxGraphicsWindow.h" #include "osxGraphicsWindow.h"
#include "config_osxdisplay.h" #include "config_osxdisplay.h"
@ -29,6 +31,7 @@
#include "virtualFileSystem.h" #include "virtualFileSystem.h"
#include "config_util.h" #include "config_util.h"
#include <OpenGL/gl.h> #include <OpenGL/gl.h>
#include <AGL/agl.h> #include <AGL/agl.h>
#include <ApplicationServices/ApplicationServices.h> #include <ApplicationServices/ApplicationServices.h>
@ -952,6 +955,9 @@ bool osxGraphicsWindow::OSOpenWindow(WindowProperties &req_properties)
// err = CPSSetFrontProcess(&PSN); // 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()) if (req_properties.has_fullscreen() && req_properties.get_fullscreen())
{ {
osxdisplay_cat.info() << "Creating full screen\n"; osxdisplay_cat.info() << "Creating full screen\n";