Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7660 for code


Ignore:
Timestamp:
Nov 24, 2010, 2:39:14 PM (14 years ago)
Author:
youngk
Message:

Added a hack to force the orxonox window to front on OS X.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ois_update/src/libraries/core/GraphicsManager.cc

    r7284 r7660  
    314314
    315315        Ogre::WindowEventUtilities::addWindowEventListener(this->renderWindow_, ogreWindowEventListener_.get());
    316 
     316               
     317// HACK
     318#ifdef __APPLE_CC__
     319        //INFO: This will give our window focus, and not lock it to the terminal
     320        ProcessSerialNumber psn = {0, kCurrentProcess};
     321        TransformProcessType(&psn, kProcessTransformToForegroundApplication);
     322        SetFrontProcess(&psn);
     323#endif
     324// End of HACK
     325               
    317326        // create a full screen default viewport
    318327        // Note: This may throw when adding a viewport with an existing z-order!
Note: See TracChangeset for help on using the changeset viewer.