Changeset 50522 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Feb 20, 2014 11:52:02 AM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.h
r50492 r50522 56 56 57 57 /* Public getters: */ 58 ulong screenId() const { return m_uScreenId; } 58 59 UIMachineView* machineView() const { return m_pMachineView; } 59 60 UIMachineLogic* machineLogic() const { return m_pMachineLogic; } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r50521 r50522 336 336 337 337 #ifdef Q_WS_MAC 338 /* Keep sync for machine-logic/window(s) in ML and next: */338 /* On ML and later: */ 339 339 if (vboxGlobal().osRelease() > MacOSXRelease_Lion) 340 340 { 341 341 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 342 342 { 343 /* Keep sync for machine-logic/window(s): */ 343 344 connect(pMachineWindow, SIGNAL(sigNotifyAboutNativeFullscreenDidEnter()), 344 345 this, SLOT(sltHandleNativeFullscreenDidEnter())); 345 346 connect(pMachineWindow, SIGNAL(sigNotifyAboutNativeFullscreenDidExit()), 346 347 this, SLOT(sltHandleNativeFullscreenDidExit())); 348 /* Enter native fullscreen mode: */ 349 if (darwinScreensHaveSeparateSpaces() || pMachineWindow->screenId() == 0) 350 if (!darwinIsInFullscreenMode(pMachineWindow)) 351 darwinToggleFullscreenMode(pMachineWindow); 347 352 } 348 353 } … … 373 378 374 379 #ifdef Q_WS_MAC 375 /* Leave sync for machine-logic/window(s) in ML and next: */380 /* On ML and later: */ 376 381 if (vboxGlobal().osRelease() > MacOSXRelease_Lion) 377 382 { 378 383 foreach (UIMachineWindow *pMachineWindow, machineWindows()) 379 384 { 385 /* Leave sync for machine-logic/window(s): */ 380 386 disconnect(pMachineWindow, SIGNAL(sigNotifyAboutNativeFullscreenDidEnter()), 381 387 this, SLOT(sltHandleNativeFullscreenDidEnter())); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r50521 r50522 73 73 #endif /* Q_WS_MAC */ 74 74 75 #ifdef RT_OS_DARWIN76 void UIMachineWindowFullscreen::sltToggleNativeFullscreenMode()77 {78 /* Make sure this method is only used for ML and next: */79 AssertReturnVoid(vboxGlobal().osRelease() > MacOSXRelease_Lion);80 81 /* Enter native fullscreen mode: */82 if (!darwinIsInFullscreenMode(this))83 darwinToggleFullscreenMode(this);84 }85 #endif /* RT_OS_DARWIN */86 87 75 void UIMachineWindowFullscreen::sltMachineStateChanged() 88 76 { … … 146 134 UICocoaApplication::instance()->registerToNativeNotification("NSWindowDidExitFullScreenNotification", this, 147 135 UIMachineWindow::handleNativeNotification); 148 /* Asynchronously toggle fullscreen mode for every screen which requires it: */149 if (darwinScreensHaveSeparateSpaces() || m_uScreenId == 0)150 QTimer::singleShot(0, this, SLOT(sltToggleNativeFullscreenMode()));151 136 } 152 137 #endif /* Q_WS_MAC */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.h
r50498 r50522 51 51 private slots: 52 52 53 #ifdef RT_OS_DARWIN54 /** Mac OS X: Toggles native fullscreen mode. */55 void sltToggleNativeFullscreenMode();56 #endif /* RT_OS_DARWIN */57 58 53 /* Session event-handlers: */ 59 54 void sltMachineStateChanged();
Note:
See TracChangeset
for help on using the changeset viewer.