VirtualBox

Changeset 8628 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 6, 2008 2:35:21 PM (17 years ago)
Author:
vboxsync
Message:

2838: "Don't leave fullscreen when changing the guest resolution" fix.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

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

    r8444 r8628  
    157157
    158158    /* For debugging events */
    159     /* 
     159    /*
    160160    if (!(eventKind == kEventWindowActivated ||
    161161          eventClass == 0x63757465))
     
    22382238void VBoxConsoleView::toggleFSMode()
    22392239{
    2240     if (mIsAdditionsActive && mAutoresizeGuest)
     2240    if ((mIsAdditionsActive && mAutoresizeGuest) ||
     2241        mMainWnd->isTrueFullscreen())
    22412242    {
    22422243        QSize newSize = QSize();
     
    35053506void VBoxConsoleView::doResizeHint (const QSize &aToSize)
    35063507{
    3507     if (mIsAdditionsActive && mAutoresizeGuest)
     3508    if ((mIsAdditionsActive && mAutoresizeGuest) ||
     3509        mMainWnd->isTrueFullscreen())
    35083510    {
    35093511        /* If this slot is invoked directly then use the passed size
     
    35193521        setDesktopGeometry(sz.width(), sz.height());
    35203522
    3521         mConsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0, 0);
     3523        if (mIsAdditionsActive)
     3524            mConsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0, 0);
    35223525    }
    35233526}
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r8513 r8628  
    10281028     * we requested. So after all the resizing stuff set the clipping
    10291029     * mask and the spacing shifter to the corresponding values. */
    1030     setViewInSeamlessMode (QRect(console->mapToGlobal (QPoint(0, 0)), console->size()));
     1030    setViewInSeamlessMode (QRect (console->mapToGlobal (QPoint (0, 0)), console->size()));
    10311031#ifdef Q_WS_MAC
    10321032    if (!mIsSeamless)
     
    10421042    if (mIsSeamless)
    10431043        connect (console, SIGNAL (resizeHintDone()),
    1044                  this, SLOT(exitSeamless()));
    1045     else if (mIsFullscreen)
    1046         connect (console, SIGNAL (resizeHintDone()),
    1047                  this, SLOT(exitFullscreen()));
     1044                 this, SLOT (exitSeamless()));
     1045    /* disabled for now */
     1046    //else if (mIsFullscreen)
     1047    //    connect (console, SIGNAL (resizeHintDone()),
     1048    //             this, SLOT (exitFullscreen()));
    10481049}
    10491050
     
    10771078void VBoxConsoleWnd::exitFullscreen()
    10781079{
     1080    Assert (0); /* disabled for now */
    10791081    if (mIsFullscreen && vmFullscreenAction->isEnabled())
    10801082        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