Changeset 50521 in vbox
- Timestamp:
- Feb 20, 2014 11:38:52 AM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r50520 r50521 158 158 /* Request 'normal' (window) visual-state: */ 159 159 uisession()->setRequestedVisualState(UIVisualStateType_Normal); 160 /* Toggle native fullscreen mode for each window: */ 161 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 162 darwinToggleFullscreenMode(pMachineWindow); 160 /* Exit native fullscreen mode for each window: */ 161 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 162 if (darwinIsInFullscreenMode(pMachineWindow)) 163 darwinToggleFullscreenMode(pMachineWindow); 163 164 } 164 165 } … … 174 175 /* Request 'seamless' visual-state: */ 175 176 uisession()->setRequestedVisualState(UIVisualStateType_Seamless); 176 /* Toggle native fullscreen mode for each window: */ 177 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 178 darwinToggleFullscreenMode(pMachineWindow); 177 /* Exit native fullscreen mode for each window: */ 178 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 179 if (darwinIsInFullscreenMode(pMachineWindow)) 180 darwinToggleFullscreenMode(pMachineWindow); 179 181 } 180 182 } … … 190 192 /* Request 'scale' visual-state: */ 191 193 uisession()->setRequestedVisualState(UIVisualStateType_Scale); 192 /* Toggle native fullscreen mode for each window: */ 193 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 194 darwinToggleFullscreenMode(pMachineWindow); 194 /* Exit native fullscreen mode for each window: */ 195 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 196 if (darwinIsInFullscreenMode(pMachineWindow)) 197 darwinToggleFullscreenMode(pMachineWindow); 195 198 } 196 199 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r50505 r50521 79 79 AssertReturnVoid(vboxGlobal().osRelease() > MacOSXRelease_Lion); 80 80 81 /* Toggle native fullscreen mode: */ 82 darwinToggleFullscreenMode(this); 81 /* Enter native fullscreen mode: */ 82 if (!darwinIsInFullscreenMode(this)) 83 darwinToggleFullscreenMode(this); 83 84 } 84 85 #endif /* RT_OS_DARWIN */
Note:
See TracChangeset
for help on using the changeset viewer.