VirtualBox

Changeset 27380 in vbox


Ignore:
Timestamp:
Mar 15, 2010 8:15:59 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: New running VM core: improve f/s mode-switching stability (fix 2).

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.h

    r27379 r27380  
    280280        : QEventLoop(0)
    281281        , m_iTimerId(0)
     282        , m_fReallyQuit(false)
    282283    {
    283284        /* Also start timer to unlock pool in case of
     
    290291        /* Kill the timer: */
    291292        killTimer(m_iTimerId);
     293    }
     294
     295public slots:
     296
     297    void quit()
     298    {
     299        if (m_fReallyQuit)
     300            QEventLoop::quit();
     301        else
     302            m_fReallyQuit = true;
    292303    }
    293304
     
    304315
    305316    int m_iTimerId;
     317    bool m_fReallyQuit;
    306318};
    307319
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp

    r27379 r27380  
    169169
    170170        case VBoxDefs::ResizeEventType:
    171         {
     171        case VBoxDefs::RepaintEventType:
     172        {
     173            /* Unlock on guest resize & repaint events: */
    172174            bool fResult = UIMachineView::event(pEvent);
    173175            if (m_pSyncBlocker && m_pSyncBlocker->isRunning())
     
    175177            return fResult;
    176178        }
     179
    177180        default:
    178181            break;
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp

    r27379 r27380  
    180180
    181181        case VBoxDefs::ResizeEventType:
    182         {
     182        case VBoxDefs::RepaintEventType:
     183        {
     184            /* Unlock on guest resize & repaint events: */
    183185            bool fResult = UIMachineView::event(pEvent);
    184186            if (m_pSyncBlocker && m_pSyncBlocker->isRunning())
     
    187189            break;
    188190        }
     191
    189192        default:
    190193            break;
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