Changeset 52372 in vbox
- Timestamp:
- Aug 13, 2014 7:06:54 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r52346 r52372 100 100 void UIMachineLogicFullscreen::maybeAdjustGuestScreenSize() 101 101 { 102 LogRel(("UIMachineLogicFullscreen::maybeAdjustGuestScreenSize")); 103 102 104 /* Rebuild multi-screen layout: */ 103 105 m_pScreenLayout->rebuild(); 106 107 #ifdef Q_WS_MAC 108 /* For Lion and previous: */ 109 if (vboxGlobal().osRelease() <= MacOSXRelease_Lion) 110 { 111 /* Make sure all machine-window(s) have proper geometry: */ 112 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 113 pMachineWindow->showInNecessaryMode(); 114 } 115 /* Revalidate native fullscreen for ML and next: */ 116 else revalidateNativeFullScreen(); 117 #else /* !Q_WS_MAC */ 104 118 /* Make sure all machine-window(s) have proper geometry: */ 105 119 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 106 120 pMachineWindow->showInNecessaryMode(); 121 #endif /* !Q_WS_MAC */ 107 122 } 108 123 … … 353 368 /* Make sure further code will be called just once: */ 354 369 uisession()->forgetPreviousMachineState(); 355 /* Rebuild multi-screen layout: */ 356 m_pScreenLayout->rebuild(); 357 /* Make sure all machine-window(s) have proper geometry: */ 358 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 359 pMachineWindow->showInNecessaryMode(); 370 /* Adjust guest-screen size if necessary: */ 371 maybeAdjustGuestScreenSize(); 360 372 } 361 373 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r52346 r52372 88 88 void UIMachineLogicSeamless::maybeAdjustGuestScreenSize() 89 89 { 90 LogRel(("UIMachineLogicSeamless::maybeAdjustGuestScreenSize")); 91 90 92 /* Rebuild multi-screen layout: */ 91 93 m_pScreenLayout->rebuild(); 94 92 95 /* Make sure all machine-window(s) have proper geometry: */ 93 96 foreach (UIMachineWindow *pMachineWindow, machineWindows()) … … 147 150 /* Make sure further code will be called just once: */ 148 151 uisession()->forgetPreviousMachineState(); 149 /* Rebuild multi-screen layout: */ 150 m_pScreenLayout->rebuild(); 151 /* Make sure all machine-window(s) have proper geometry: */ 152 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 153 pMachineWindow->showInNecessaryMode(); 152 /* Adjust guest-screen size if necessary: */ 153 maybeAdjustGuestScreenSize(); 154 154 } 155 155 } … … 169 169 void UIMachineLogicSeamless::sltScreenLayoutChanged() 170 170 { 171 LogRel(("UIMachineLogicSeamless::sltScreenLayoutChanged: Multi-screen layout changed.\n")); 172 171 173 /* Make sure all machine-window(s) have proper geometry: */ 172 174 foreach (UIMachineWindow *pMachineWindow, machineWindows())
Note:
See TracChangeset
for help on using the changeset viewer.