VirtualBox

Ignore:
Timestamp:
Sep 9, 2020 10:13:28 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9670. Calling normalize geometry when the auto resize option is toggled on

File:
1 edited

Legend:

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

    r86046 r86072  
    19901990    /* Toggle guest-autoresize feature for all view(s)! */
    19911991    foreach(UIMachineWindow *pMachineWindow, machineWindows())
     1992    {
    19921993        pMachineWindow->machineView()->setGuestAutoresizeEnabled(fEnabled);
     1994        /* Normalize machine windows if auto resize option is toggled to true. */
     1995        if (fEnabled)
     1996        {
     1997            /* Exit maximized window state if actual: */
     1998            if (pMachineWindow->isMaximized())
     1999                pMachineWindow->showNormal();
     2000
     2001            /* Normalize window geometry: */
     2002            pMachineWindow->normalizeGeometry(true /* adjust position */, true /* resize window to guest display size */);
     2003        }
     2004    }
    19932005}
    19942006
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