Changeset 76164 in vbox
- Timestamp:
- Dec 11, 2018 4:14:25 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
-
extradata/UIExtraDataManager.cpp (modified) (2 diffs)
-
runtime/UIMachineView.cpp (modified) (2 diffs)
-
runtime/UISession.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r75642 r76164 3709 3709 { 3710 3710 /* Not for primary screen: */ 3711 AssertReturn(uScreenIndex > 0, true); 3711 if (uScreenIndex == 0) 3712 return true; 3712 3713 3713 3714 /* Compose corresponding key: */ … … 3721 3722 { 3722 3723 /* Not for primary screen: */ 3723 AssertReturnVoid(uScreenIndex > 0); 3724 if (uScreenIndex == 0) 3725 return; 3724 3726 3725 3727 /* Compose corresponding key: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineView.cpp
r76062 r76164 319 319 (int)screenId(), size.width(), size.height())); 320 320 321 /* Record the hint to extra data, needed for guests using VMSVGA: */ 322 storeGuestSizeHint(size); 323 321 324 /* If auto-mount of guest-screens (auto-pilot) enabled: */ 322 325 if (gEDataManager->autoMountGuestScreensEnabled(vboxGlobal().managedVMUuid())) … … 434 437 /* If we are in normal or scaled mode and if GA are active, 435 438 * remember the guest-screen size to be able to restore it when necessary: */ 436 if (!isFullscreenOrSeamless() && uisession()->isGuestSupportsGraphics()) 439 /* As machines with Linux/Solaris and VMSVGA are not able to tell us 440 * whether a resize was due to the system or user interaction we currently 441 * do not store hints for these systems except when we explicitly send them 442 * ourselves. Windows guests should use VBoxVGA controllers, not VMSVGA. */ 443 if ( !isFullscreenOrSeamless() 444 && uisession()->isGuestSupportsGraphics() 445 && (machine().GetGraphicsControllerType() != KGraphicsControllerType_VMSVGA)) 437 446 storeGuestSizeHint(QSize(iWidth, iHeight)); 438 447 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r75361 r76164 2061 2061 /* Remember 'actual' (host-desire) visibility status: */ 2062 2062 m_monitorVisibilityVectorHostDesires[(int)uScreenId] = fIsMonitorVisible; 2063 2064 /* And remember the request in extra data for guests with VMSVGA: */ 2065 gEDataManager->setLastGuestScreenVisibilityStatus(uScreenId, fIsMonitorVisible, vboxGlobal().managedVMUuid()); 2063 2066 } 2064 2067 … … 2080 2083 m_monitorVisibilityVector[(int)uScreenId] = fIsMonitorVisible; 2081 2084 /* Remember 'desired' visibility status: */ 2082 gEDataManager->setLastGuestScreenVisibilityStatus(uScreenId, fIsMonitorVisible, vboxGlobal().managedVMUuid()); 2085 /* See note in UIMachineView::sltHandleNotifyChange() regarding the graphics controller check. */ 2086 if (machine().GetGraphicsControllerType() != KGraphicsControllerType_VMSVGA) 2087 gEDataManager->setLastGuestScreenVisibilityStatus(uScreenId, fIsMonitorVisible, vboxGlobal().managedVMUuid()); 2083 2088 2084 2089 /* Make sure action-pool knows guest-screen visibility status: */
Note:
See TracChangeset
for help on using the changeset viewer.

