VirtualBox

Changeset 61726 in vbox


Ignore:
Timestamp:
Jun 15, 2016 4:51:21 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8422: Runtime UI: Full-screen window: Small OSX cleanup for r107925 and r108089.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp

    r61720 r61726  
    337337    if (vboxGlobal().osRelease() <= MacOSXRelease_Lion)
    338338        resize(workingArea.size());
    339     /* Resize window to the appropriate size on ML and next
    340      * only if that screen has no own user-space: */
     339    /* Resize window to the appropriate size on ML and next if it's screen has no own user-space: */
    341340    else if (!pFullscreenLogic->screensHaveSeparateSpaces() && m_uScreenId != 0)
    342341        resize(workingArea.size());
     
    351350            geo = QRect(QPoint(0, 0), QSize(pFrameBuffer->width(), pFrameBuffer->height()).boundedTo(workingArea.size()));
    352351        }
    353         /* If frame-buffer size is null => use default size: */
     352        /* If normal geometry still null => use default size: */
    354353        if (geo.isNull())
    355354            geo = QRect(QPoint(0, 0), QSize(800, 600).boundedTo(workingArea.size()));
     
    429428        placeOnScreen();
    430429
    431         /* ML and next using native stuff, so we can call for simple show(),
    432          * Lion and previous using Qt stuff, so we should call for showFullScreen(): */
    433         const bool fSupportsNativeFullScreen = vboxGlobal().osRelease() > MacOSXRelease_Lion;
    434         if (fSupportsNativeFullScreen)
    435         {
    436             /* Show window in normal mode: */
     430        /* Simple show() for ML and next, showFullScreen() otherwise: */
     431        if (vboxGlobal().osRelease() > MacOSXRelease_Lion)
    437432            show();
    438         }
    439433        else
    440         {
    441             /* Show window in fullscreen mode: */
    442434            showFullScreen();
    443         }
    444435
    445436        /* Adjust machine-view size if necessary: */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette