Changeset 57046 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 21, 2015 4:39:41 PM (9 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/UIMachineWindowFullscreen.cpp
r57045 r57046 354 354 AssertPtrReturnVoid(pFullscreenLogic); 355 355 356 #ifdef Q_WS_MAC357 /* ML and next using native stuff: */358 const bool fSupportsNativeFullScreen = vboxGlobal().osRelease() > MacOSXRelease_Lion;359 #endif /* Q_WS_MAC */360 361 356 /* Make sure window should be shown and mapped to some host-screen: */ 362 357 if (!uisession()->isScreenVisible(m_uScreenId) || … … 382 377 383 378 #ifdef Q_WS_X11 384 /* On X11 calling placeOnScreen() is only needed for legacy window managers 385 * which we do not test, so this is 'best effort' code. With window managers which 386 * support the _NET_WM_FULLSCREEN_MONITORS protocol this would interfere unreliable. */ 379 /* If WM doesn't support native stuff, we need to call for placeOnScreen(): */ 387 380 const bool fSupportsNativeFullScreen = VBoxGlobal::supportsFullScreenMonitorsProtocolX11() && 388 381 !gEDataManager->legacyFullscreenModeRequested(); 389 382 if (!fSupportsNativeFullScreen) 383 { 384 /* Make sure window have appropriate geometry: */ 390 385 placeOnScreen(); 386 } 391 387 #else /* !Q_WS_X11 */ 392 /* Make sure window is maximized and placed on valid screen: */388 /* Make sure window have appropriate geometry: */ 393 389 placeOnScreen(); 394 390 #endif /* !Q_WS_X11 */ … … 397 393 /* ML and next using native stuff, so we can call for simple show(), 398 394 * Lion and previous using Qt stuff, so we should call for showFullScreen(): */ 395 const bool fSupportsNativeFullScreen = vboxGlobal().osRelease() > MacOSXRelease_Lion; 399 396 if (fSupportsNativeFullScreen) 397 { 398 /* Show window in normal mode: */ 400 399 show(); 400 } 401 401 else 402 { 403 /* Show window in fullscreen mode: */ 402 404 showFullScreen(); 405 } 403 406 #else /* !Q_WS_MAC */ 404 /* Show in fullscreen mode: */407 /* Show window in fullscreen mode: */ 405 408 showFullScreen(); 406 409 #endif /* !Q_WS_MAC */ 407 410 408 411 #ifdef Q_WS_X11 412 /* If WM supports native stuff, we need to map window to corresponding host-screen. */ 409 413 if (fSupportsNativeFullScreen) 410 414 { 411 /* Tell recent window managers which screen this window should be mapped to. 412 * Apparently some window managers will not respond to requests for 413 * unmapped windows, so do this *after* the call to showFullScreen(). */ 415 /* Tell recent window managers which host-screen this window should be mapped to: */ 414 416 VBoxGlobal::setFullScreenMonitorX11(this, pFullscreenLogic->hostScreenForGuestScreen(m_uScreenId)); 415 }416 else417 {418 /* On X11 calling placeOnScreen() is only needed for legacy window managers419 * which we do not test, so this is 'best effort' code. With window managers which420 * support the _NET_WM_FULLSCREEN_MONITORS protocol this would interfere unreliable. */421 placeOnScreen();422 417 } 423 418 #endif /* Q_WS_X11 */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r57045 r57046 214 214 placeOnScreen(); 215 215 216 /* Show in normal mode: */216 /* Show window in normal mode: */ 217 217 show(); 218 218 … … 225 225 { 226 226 # if defined(Q_WS_WIN) 227 /* Show mini-toolbar : */227 /* Show mini-toolbar in normal mode: */ 228 228 m_pMiniToolBar->show(); 229 229 # elif defined(Q_WS_X11) 230 /* Allow mini-toolbar to be located on available area: */230 /* Show mini-toolbar in maximized mode: */ 231 231 m_pMiniToolBar->showMaximized(); 232 232 # endif /* Q_WS_X11 */
Note:
See TracChangeset
for help on using the changeset viewer.