VirtualBox

Changeset 27252 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 10, 2010 2:53:19 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: New running VM core: do not wait for fullscreen/seamless mode exit on machine poweroff.

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

Legend:

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

    r27237 r27252  
    240240void UIMachineViewFullscreen::cleanupFullscreen()
    241241{
    242     if (m_bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics())
    243     {
    244         /* Rollback fullscreen frame-buffer size to normal: */
    245         machineWindowWrapper()->machineWindow()->hide();
    246         UIMachineViewBlocker blocker(this);
    247         sltPerformGuestResize(uisession()->guestSizeHint(screenId()));
    248         blocker.exec();
     242    /* If machine still running: */
     243    if (uisession()->isRunning())
     244    {
     245        /* And guest supports advanced graphics management which is enabled: */
     246        if (m_bIsGuestAutoresizeEnabled && uisession()->isGuestSupportsGraphics())
     247        {
     248            /* Rollback fullscreen frame-buffer size to normal: */
     249            machineWindowWrapper()->machineWindow()->hide();
     250            UIMachineViewBlocker blocker(this);
     251            sltPerformGuestResize(uisession()->guestSizeHint(screenId()));
     252            blocker.exec();
     253        }
    249254    }
    250255}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineViewSeamless.cpp

    r27249 r27252  
    259259void UIMachineViewSeamless::cleanupSeamless()
    260260{
    261     /* Reset seamless feature flag of the guest: */
     261    /* If machine still running: */
    262262    if (uisession()->isRunning())
     263    {
     264        /* Reset seamless feature flag of the guest: */
    263265        session().GetConsole().GetDisplay().SetSeamlessMode(false);
    264266
    265     /* Rollback seamless frame-buffer size to normal: */
    266     machineWindowWrapper()->machineWindow()->hide();
    267     UIMachineViewBlocker blocker(this);
    268     sltPerformGuestResize(uisession()->guestSizeHint(screenId()));
    269     blocker.exec();
     267        /* Rollback seamless frame-buffer size to normal: */
     268        machineWindowWrapper()->machineWindow()->hide();
     269        UIMachineViewBlocker blocker(this);
     270        sltPerformGuestResize(uisession()->guestSizeHint(screenId()));
     271        blocker.exec();
     272    }
    270273}
    271274
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