VirtualBox

Changeset 29092 in vbox


Ignore:
Timestamp:
May 5, 2010 4:15:22 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt: 3948: Mini-ToolBar for Full-screen & Seamless modes should now correctly update seamless mask in case of host multi-monitor setup.

File:
1 edited

Legend:

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

    r28964 r29092  
    389389        QRegion toolBarRegion(m_pMiniToolBar->mask());
    390390
    391         /* Shift mask according global position: */
    392         toolBarRegion.translate(m_pMiniToolBar->mapToGlobal(toolBarRegion.boundingRect().topLeft()) - QPoint(1, 0));
    393 
    394         /* Shift mask according available geometry: */
    395         int iScreen = static_cast<UIMachineLogicSeamless*>(machineLogic())->hostScreenForGuestScreen(m_uScreenId);
    396         QRect screenArea = QApplication::desktop()->screenGeometry(iScreen);
    397         QRect workingArea = vboxGlobal().availableGeometry(iScreen);
    398         QPoint workingAreaOffset(screenArea.topLeft() - workingArea.topLeft());
    399         toolBarRegion.translate(workingAreaOffset);
     391        /* Move mini-toolbar mask to mini-toolbar position: */
     392        toolBarRegion.translate(QPoint(m_pMiniToolBar->x(), m_pMiniToolBar->y()));
    400393
    401394        /* Including mini tool-bar mask: */
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