Changeset 50520 in vbox for trunk/src/VBox
- Timestamp:
- Feb 20, 2014 11:15:10 AM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin-cocoa.mm
r50505 r50520 38 38 /** Easy way of dynamical call for 10.7 AppKit functionality we do not yet support. */ 39 39 #define NSWindowCollectionBehaviorFullScreenPrimary (1 << 7) 40 #define NSFullScreenWindowMask (1 << 14) 40 41 41 42 NativeNSWindowRef darwinToNativeWindowImpl(NativeNSViewRef pView) … … 201 202 if ([pWindow respondsToSelector: @selector(toggleFullScreen:)]) 202 203 [pWindow performSelector: @selector(toggleFullScreen:) withObject: (id)nil]; 204 } 205 206 bool darwinIsInFullscreenMode(NativeNSWindowRef pWindow) 207 { 208 /* Check whether passed pWindow is in native fullscreen mode. */ 209 return [pWindow styleMask] & NSFullScreenWindowMask; 203 210 } 204 211 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.cpp
r50505 r50520 152 152 { 153 153 return ::darwinToggleFullscreenMode(::darwinToNativeWindow(pWidget)); 154 } 155 156 bool darwinIsInFullscreenMode(QWidget *pWidget) 157 { 158 return ::darwinIsInFullscreenMode(::darwinToNativeWindow(pWidget)); 154 159 } 155 160 -
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.h
r50505 r50520 82 82 void darwinEnableTransienceSupport(NativeNSWindowRef pWindow); 83 83 void darwinToggleFullscreenMode(NativeNSWindowRef pWindow); 84 bool darwinIsInFullscreenMode(NativeNSWindowRef pWindow); 84 85 bool darwinScreensHaveSeparateSpaces(); 85 86 … … 247 248 void darwinEnableTransienceSupport(QWidget *pWidget); 248 249 void darwinToggleFullscreenMode(QWidget *pWidget); 250 bool darwinIsInFullscreenMode(QWidget *pWidget); 249 251 bool darwinOpenFile(const QString &strFile); 250 252 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r50498 r50520 126 126 Q_UNUSED(fResult); 127 127 128 /* Exit fullscreen mode if there is/are no fullscreen window(s) left: */ 129 if (m_fullscreenMachineWindows.isEmpty()) 128 /* If there is/are still fullscreen window(s) present: */ 129 if (!m_fullscreenMachineWindows.isEmpty()) 130 { 131 /* Ask remain window(s) to exit fullscreen too: */ 132 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 133 if (darwinIsInFullscreenMode(pMachineWindow)) 134 darwinToggleFullscreenMode(pMachineWindow); 135 } 136 /* If there is/are no more fullscreen window(s) left: */ 137 else 130 138 { 131 139 /* Change visual-state to requested: */
Note:
See TracChangeset
for help on using the changeset viewer.