- Timestamp:
- Jul 1, 2016 2:55:11 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r60362 r61982 178 178 resize(workingArea.size()); 179 179 move(workingArea.topLeft()); 180 181 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11)182 /* If there is a mini-toolbar: */183 if (m_pMiniToolBar)184 {185 /* Set appropriate geometry for mini-toolbar: */186 m_pMiniToolBar->resize(workingArea.size());187 m_pMiniToolBar->move(workingArea.topLeft());188 }189 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */190 180 } 191 181 … … 200 190 !pSeamlessLogic->hasHostScreenForGuestScreen(m_uScreenId)) 201 191 { 202 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11)203 /* If there is a mini-toolbar: */204 if (m_pMiniToolBar)205 {206 /* Hide mini-toolbar: */207 m_pMiniToolBar->hide();208 }209 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */210 211 192 /* Hide window: */ 212 193 hide(); … … 223 204 /* Show window in normal mode: */ 224 205 show(); 225 226 #if defined(VBOX_WS_WIN) || defined(VBOX_WS_X11)227 /* If there is a mini-toolbar: */228 if (m_pMiniToolBar)229 {230 /* Show mini-toolbar in normal mode: */231 m_pMiniToolBar->show();232 }233 #endif /* VBOX_WS_WIN || VBOX_WS_X11 */234 206 235 207 /* Adjust machine-view size if necessary: */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp
r61979 r61982 604 604 #elif defined(VBOX_WS_WIN) 605 605 606 /* Adjust window before showing full-screen: */606 /* Adjust window: */ 607 607 sltAdjust(); 608 showFullScreen(); 608 /* Show window in necessary mode: */ 609 switch (m_geometryType) 610 { 611 case GeometryType_Available: return show(); 612 case GeometryType_Full: return showFullScreen(); 613 } 609 614 610 615 #elif defined(VBOX_WS_X11) 611 616 612 /* Show window full-screen before adjusting: */ 613 showFullScreen(); 617 /* Show window in necessary mode: */ 618 switch (m_geometryType) 619 { 620 case GeometryType_Available: return show(); 621 case GeometryType_Full: return showFullScreen(); 622 } 623 /* Adjust window: */ 614 624 sltAdjust(); 615 625 … … 629 639 Q_UNUSED(iHostScreen); 630 640 /* And corresponding working area: */ 631 const QRect workingArea = vboxGlobal().screenGeometry(iHostScreen); 641 QRect workingArea; 642 switch (m_geometryType) 643 { 644 case GeometryType_Available: workingArea = vboxGlobal().availableGeometry(iHostScreen); break; 645 case GeometryType_Full: workingArea = vboxGlobal().screenGeometry(iHostScreen); break; 646 } 632 647 Q_UNUSED(workingArea); 633 648
Note:
See TracChangeset
for help on using the changeset viewer.