VirtualBox

Changeset 61984 in vbox


Ignore:
Timestamp:
Jul 1, 2016 3:12:38 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:5978: Runtime UI: Totally forgot that Windows host have different mapping mechanism for seamless and full-screen modes (s.a. r108429).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp

    r61982 r61984  
    653653#elif defined(VBOX_WS_WIN)
    654654
     655    switch (m_geometryType)
     656    {
     657        case GeometryType_Available:
     658        {
     659            /* Set appropriate window geometry: */
     660            resize(workingArea.size());
     661            move(workingArea.topLeft());
     662            break;
     663        }
     664        case GeometryType_Full:
     665        {
    655666# if QT_VERSION >= 0x050000
    656     /* Map window onto required screen: */
    657     Assert(iHostScreen < qApp->screens().size());
    658     windowHandle()->setScreen(qApp->screens().at(iHostScreen));
     667            /* Map window onto required screen: */
     668            Assert(iHostScreen < qApp->screens().size());
     669            windowHandle()->setScreen(qApp->screens().at(iHostScreen));
    659670# endif /* QT_VERSION >= 0x050000 */
    660     /* Set appropriate window size: */
    661     resize(workingArea.size());
     671            /* Set appropriate window size: */
     672            resize(workingArea.size());
    662673# if QT_VERSION < 0x050000
    663     /* Move window onto required screen: */
    664     move(workingArea.topLeft());
     674            /* Move window onto required screen: */
     675            move(workingArea.topLeft());
    665676# endif /* QT_VERSION < 0x050000 */
     677            break;
     678        }
     679    }
    666680
    667681#elif defined(VBOX_WS_X11)
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