VirtualBox

Changeset 1350 in vbox


Ignore:
Timestamp:
Mar 9, 2007 12:10:57 AM (18 years ago)
Author:
vboxsync
Message:

darwin: A quick go at makeing process switching work. TODO: restoring minimzied windows and skipping processes without windows is left to do.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMListBox.cpp

    r1121 r1350  
    3333
    3434#include <qfileinfo.h>
     35
     36#if defined (Q_WS_MAC)
     37# include <Carbon/Carbon.h>
     38#endif
    3539
    3640
     
    117121    return (WId) ~0;
    118122
    119 #else
     123#elif defined (Q_WS_MAC)
     124
     125    /** @todo Figure out how to get access to another windows of another process...
     126     * Or at least check that it's not a VBoxVRDP process. */
     127    NOREF (aPid);
     128    return (WId) 0;
     129
     130#else   
    120131
    121132    return (WId) ~0;
     
    544555    return false;
    545556
     557#elif defined (Q_WS_MAC)
     558
     559    ProcessSerialNumber psn;
     560    OSStatus rc = ::GetProcessForPID (mPid, &psn);
     561    if (!rc)
     562    {
     563        rc = ::SetFrontProcess (&psn);
     564
     565        if (!rc)
     566        {
     567            ShowHideProcess (&psn, true);
     568            return true;
     569        }
     570    }
     571    return false;
     572
    546573#else
    547574
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette