VirtualBox

Changeset 27193 in vbox


Ignore:
Timestamp:
Mar 9, 2010 12:34:46 AM (15 years ago)
Author:
vboxsync
Message:

FE/Qt: fix spurious resize hint when switching from a Linux VT

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

Legend:

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

    r27192 r27193  
    11711171}
    11721172
    1173 void VBoxConsoleView::setAutoresizeGuest (bool on)
     1173void VBoxConsoleView::setAutoresizeGuest (bool on, bool doHint)
    11741174{
    11751175    if (mAutoresizeGuest != on)
     
    11791179        maybeRestrictMinimumSize();
    11801180
    1181         if (mGuestSupportsGraphics && mAutoresizeGuest)
     1181        if (mGuestSupportsGraphics && mAutoresizeGuest && doHint)
    11821182            doResizeHint();
    11831183    }
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.h

    r27191 r27193  
    103103    void updateHostCursor();
    104104
    105     void setAutoresizeGuest (bool on);
     105    void setAutoresizeGuest (bool on, bool doHint);
    106106
    107107    void onFullscreenChange (bool on);
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r27131 r27193  
    20492049#endif
    20502050
    2051     mConsole->setAutoresizeGuest (on);
     2051    mConsole->setAutoresizeGuest (on, true);
    20522052}
    20532053
     
    27962796            toggleFullscreenMode (true, true);
    27972797        /* Disable auto-resizing if advanced graphics are not available */
    2798         mConsole->setAutoresizeGuest (mIsGraphicsSupported && mVmAutoresizeGuestAction->isChecked());
     2798        mConsole->setAutoresizeGuest (mIsGraphicsSupported && mVmAutoresizeGuestAction->isChecked(), false);
    27992799        mVmAutoresizeGuestAction->setEnabled (mIsGraphicsSupported);
    28002800    }
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