Changeset 29092 in vbox
- Timestamp:
- May 5, 2010 4:15:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r28964 r29092 389 389 QRegion toolBarRegion(m_pMiniToolBar->mask()); 390 390 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())); 400 393 401 394 /* Including mini tool-bar mask: */
Note:
See TracChangeset
for help on using the changeset viewer.