VirtualBox

Changeset 8717 in vbox


Ignore:
Timestamp:
May 8, 2008 3:42:24 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4: Backported:

  • r30555 (2838: "Don't leave fullscreen when changing the guest resolution" fix. )
  • r30585 (2800 "FE/Qt: Switch to fullscreen does not work reliably" : Avoid waiting for 2 seconds then switching f/s mode in case of GA disabled.)
  • r30605 (2800: FE/Qt: Switch to fullscreen does not work reliably: comment #25 fix.)
Location:
trunk/src/VBox/Frontends/VirtualBox4/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp

    r8440 r8717  
    676676    ::memset (mPressedKeys, 0, SIZEOF_ARRAY (mPressedKeys));
    677677
     678    /* This timer is used as 'last resort' which toggles f/s mode
     679       in case of guest additions are not responding. */
    678680    mToggleFSModeTimer = new QTimer (this);
    679681    mToggleFSModeTimer->setSingleShot (true);
     
    22332235void VBoxConsoleView::toggleFSMode()
    22342236{
    2235     if (mIsAdditionsActive && mAutoresizeGuest)
     2237    if ((mIsAdditionsActive && mAutoresizeGuest) ||
     2238        mMainWnd->isTrueFullscreen())
    22362239    {
    22372240        QSize newSize = QSize();
     
    22452248        doResizeHint (newSize);
    22462249    }
    2247     mToggleFSModeTimer->start (2000);
     2250    /* Currently there is 2000 msec pause before timer transfers
     2251     * console into desired mode "if GA are active and auto-resize
     2252     * feature enabled" and 100 msec pause before it transfers
     2253     * console into this mode "if GA are not active or auto-resize
     2254     * feature disabled". 100 msec pause required for resizing
     2255     * before normalizing geometry. */
     2256    mToggleFSModeTimer->start (mIsAdditionsActive && mAutoresizeGuest ?
     2257        2000 : 100);
     2258
     2259    /// @todo (r=dsen) perform roll-back after 'entering' mode in case
     2260    //                 we got no resizing response from the guest.
    22482261}
    22492262
     
    34923505void VBoxConsoleView::doResizeHint (const QSize &aToSize)
    34933506{
    3494     if (mIsAdditionsActive && mAutoresizeGuest)
     3507    if ((mIsAdditionsActive && mAutoresizeGuest) ||
     3508        mMainWnd->isTrueFullscreen())
    34953509    {
    34963510        /* If this slot is invoked directly then use the passed size
     
    35063520        setDesktopGeometry(sz.width(), sz.height());
    35073521
    3508         mConsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0, 0);
     3522        if (mIsAdditionsActive && mAutoresizeGuest)
     3523            mConsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0, 0);
    35093524    }
    35103525}
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp

    r8704 r8717  
    10381038     * we requested. So after all the resizing stuff set the clipping
    10391039     * mask and the spacing shifter to the corresponding values. */
    1040     setViewInSeamlessMode (QRect(console->mapToGlobal (QPoint(0, 0)), console->size()));
     1040    setViewInSeamlessMode (QRect (console->mapToGlobal (QPoint (0, 0)), console->size()));
    10411041#ifdef Q_WS_MAC
    10421042    if (!mIsSeamless)
     
    10521052    if (mIsSeamless)
    10531053        connect (console, SIGNAL (resizeHintDone()),
    1054                  this, SLOT(exitSeamless()));
    1055     else if (mIsFullscreen)
    1056         connect (console, SIGNAL (resizeHintDone()),
    1057                  this, SLOT(exitFullscreen()));
     1054                 this, SLOT (exitSeamless()));
     1055    /* disabled for now */
     1056    //else if (mIsFullscreen)
     1057    //    connect (console, SIGNAL (resizeHintDone()),
     1058    //             this, SLOT (exitFullscreen()));
    10581059}
    10591060
     
    10871088void VBoxConsoleWnd::exitFullscreen()
    10881089{
     1090    Assert (0); /* disabled for now */
    10891091    if (mIsFullscreen && vmFullscreenAction->isEnabled())
    10901092        vmFullscreenAction->toggle();
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