VirtualBox

Changeset 62226 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 13, 2016 4:47:45 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:7625: Runtime UI: Normal mode: Normalization mechanism: Adjust according summary available geometry among all the screen host have, that allows to resize machine-windows beyond current screen borders.

File:
1 edited

Legend:

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

    r62225 r62226  
    547547    frGeo.setBottom(frGeo.bottom() + sh.height());
    548548
     549    /* Calculate common bound region: */
     550    QRegion region;
     551    for (int iScreenIndex = 0; iScreenIndex < vboxGlobal().screenCount(); ++iScreenIndex)
     552    {
     553        /* Get enumerated screen's available area: */
     554        QRect rect = vboxGlobal().availableGeometry(iScreenIndex);
     555        /* Append rectangle: */
     556        region += rect;
     557    }
     558
    549559    /* Adjust position if necessary: */
    550560    if (fAdjustPosition)
    551         frGeo = VBoxGlobal::normalizeGeometry(frGeo, vboxGlobal().availableGeometry(pos()));
     561        frGeo = VBoxGlobal::normalizeGeometry(frGeo, region);
    552562
    553563    /* Finally, set the frame geometry: */
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