VirtualBox

Changeset 52372 in vbox


Ignore:
Timestamp:
Aug 13, 2014 7:06:54 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Mac OS X: Runtime UI: Native full-screen support: Subsequent cumulative native full-screen validation fix #2.

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

Legend:

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

    r52346 r52372  
    100100void UIMachineLogicFullscreen::maybeAdjustGuestScreenSize()
    101101{
     102    LogRel(("UIMachineLogicFullscreen::maybeAdjustGuestScreenSize"));
     103
    102104    /* Rebuild multi-screen layout: */
    103105    m_pScreenLayout->rebuild();
     106
     107#ifdef Q_WS_MAC
     108    /* For Lion and previous: */
     109    if (vboxGlobal().osRelease() <= MacOSXRelease_Lion)
     110    {
     111        /* Make sure all machine-window(s) have proper geometry: */
     112        foreach (UIMachineWindow *pMachineWindow, machineWindows())
     113            pMachineWindow->showInNecessaryMode();
     114    }
     115    /* Revalidate native fullscreen for ML and next: */
     116    else revalidateNativeFullScreen();
     117#else /* !Q_WS_MAC */
    104118    /* Make sure all machine-window(s) have proper geometry: */
    105119    foreach (UIMachineWindow *pMachineWindow, machineWindows())
    106120        pMachineWindow->showInNecessaryMode();
     121#endif /* !Q_WS_MAC */
    107122}
    108123
     
    353368        /* Make sure further code will be called just once: */
    354369        uisession()->forgetPreviousMachineState();
    355         /* Rebuild multi-screen layout: */
    356         m_pScreenLayout->rebuild();
    357         /* Make sure all machine-window(s) have proper geometry: */
    358         foreach (UIMachineWindow *pMachineWindow, machineWindows())
    359             pMachineWindow->showInNecessaryMode();
     370        /* Adjust guest-screen size if necessary: */
     371        maybeAdjustGuestScreenSize();
    360372    }
    361373}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp

    r52346 r52372  
    8888void UIMachineLogicSeamless::maybeAdjustGuestScreenSize()
    8989{
     90    LogRel(("UIMachineLogicSeamless::maybeAdjustGuestScreenSize"));
     91
    9092    /* Rebuild multi-screen layout: */
    9193    m_pScreenLayout->rebuild();
     94
    9295    /* Make sure all machine-window(s) have proper geometry: */
    9396    foreach (UIMachineWindow *pMachineWindow, machineWindows())
     
    147150        /* Make sure further code will be called just once: */
    148151        uisession()->forgetPreviousMachineState();
    149         /* Rebuild multi-screen layout: */
    150         m_pScreenLayout->rebuild();
    151         /* Make sure all machine-window(s) have proper geometry: */
    152         foreach (UIMachineWindow *pMachineWindow, machineWindows())
    153             pMachineWindow->showInNecessaryMode();
     152        /* Adjust guest-screen size if necessary: */
     153        maybeAdjustGuestScreenSize();
    154154    }
    155155}
     
    169169void UIMachineLogicSeamless::sltScreenLayoutChanged()
    170170{
     171    LogRel(("UIMachineLogicSeamless::sltScreenLayoutChanged: Multi-screen layout changed.\n"));
     172
    171173    /* Make sure all machine-window(s) have proper geometry: */
    172174    foreach (UIMachineWindow *pMachineWindow, machineWindows())
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