VirtualBox

Changeset 51252 in vbox


Ignore:
Timestamp:
May 14, 2014 12:51:25 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
93705
Message:

FE/Qt: Mac OS X: Runtime UI: Native Full Screen: Additional handling for NSWindowDidFailToEnterFullScreenNotification: Push mode-change directly if session started already.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
4 edited

Legend:

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

    r51055 r51252  
    770770{
    771771    /* We should check for entering/exiting requested modes: */
    772     connect(uisession(), SIGNAL(sigMachineStarted()), this, SLOT(sltCheckForRequestedVisualStateType()));
     772    connect(uisession(), SIGNAL(sigStarted()), this, SLOT(sltCheckForRequestedVisualStateType()));
    773773    connect(uisession(), SIGNAL(sigAdditionsStateChange()), this, SLOT(sltCheckForRequestedVisualStateType()));
    774774
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r51209 r51252  
    149149    , m_fSnapshotOperationsAllowed(true)
    150150    /* Common flags: */
     151    , m_fIsStarted(false)
    151152    , m_fIsFirstTimeStarted(false)
    152153    , m_fIsIgnoreRuntimeMediumsChanging(false)
     
    371372
    372373    /* Warn listeners about machine was started: */
    373     emit sigMachineStarted();
     374    emit sigStarted();
    374375}
    375376
     
    10151016void UISession::prepareConnections()
    10161017{
     1018    connect(this, SIGNAL(sigStarted()), this, SLOT(sltMarkStarted()));
    10171019    connect(this, SIGNAL(sigCloseRuntimeUI()), this, SLOT(sltCloseRuntimeUI()));
    10181020
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r51187 r51252  
    181181    bool wasPaused() const { return machineStatePrevious() == KMachineState_Paused ||
    182182                                    machineStatePrevious() == KMachineState_TeleportingPausedVM; }
     183    bool isStarted() const { return m_fIsStarted; }
    183184    bool isFirstTimeStarted() const { return m_fIsFirstTimeStarted; }
    184185    bool isIgnoreRuntimeMediumsChanging() const { return m_fIsIgnoreRuntimeMediumsChanging; }
     
    269270
    270271    /* Session signals: */
    271     void sigMachineStarted();
     272    void sigStarted();
    272273
    273274public slots:
     
    276277
    277278private slots:
     279
     280    /** Marks machine started. */
     281    void sltMarkStarted() { m_fIsStarted = true; }
    278282
    279283    /* Handler: Close Runtime UI stuff: */
     
    432436
    433437    /* Common flags: */
     438    bool m_fIsStarted : 1;
    434439    bool m_fIsFirstTimeStarted : 1;
    435440    bool m_fIsIgnoreRuntimeMediumsChanging : 1;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r51249 r51252  
    258258        /* Ask session to change 'fullscreen' mode to 'normal': */
    259259        uisession()->setRequestedVisualState(UIVisualStateType_Normal);
     260
     261        /* If session started already => push mode-change directly: */
     262        if (uisession()->isStarted())
     263            sltCheckForRequestedVisualStateType();
    260264    }
    261265}
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