VirtualBox

Ignore:
Timestamp:
Dec 18, 2009 5:47:27 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56176
Message:

disable seamless mode when guest changes screen resolution

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

Legend:

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

    r25304 r25505  
    13461346                    mIgnoreFrameBufferResize = false;
    13471347                }
     1348
     1349                mMainWnd->onDisplayResize (re->width(), re->height());
    13481350
    13491351                return true;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r25404 r25505  
    12291229#endif
    12301230}
     1231
     1232void VBoxConsoleWnd::onDisplayResize (ulong aHeight, ulong aWidth)
     1233{
     1234    if (mIsSeamless && QApplication::desktop()->availableGeometry (this).size() != QSize (aHeight, aWidth))
     1235    {
     1236        mVmSeamlessAction->setChecked (false);
     1237        /* should be cleared already, but just in case */
     1238        if (mIsSeamless)
     1239            toggleFullscreenMode (false, true);
     1240    }
     1241}
     1242
    12311243
    12321244bool VBoxConsoleWnd::event (QEvent *aEvent)
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.h

    r25318 r25505  
    112112    void clearMask();
    113113
     114    /* informs that the guest display is resized */
     115    void onDisplayResize (ulong aHeight, ulong aWidth);
     116
    114117signals:
    115118
Note: See TracChangeset for help on using the changeset viewer.

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