VirtualBox

Changeset 26567 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 16, 2010 11:23:41 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57749
Message:

seamless: fix regression #4638

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

Legend:

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

    r26509 r26567  
    12731273#endif
    12741274
     1275                bool notifyManiWnd = mStoredConsoleSize.width() != re->width()
     1276                                || mStoredConsoleSize.height() != re->height();
     1277
     1278
    12751279                /* Store the new size to prevent unwanted resize hints being
    12761280                 * sent back. */
     
    13591363                }
    13601364
    1361                 mMainWnd->onDisplayResize (re->width(), re->height());
     1365                if (notifyManiWnd)
     1366                        mMainWnd->onDisplayResize (re->width(), re->height());
    13621367
    13631368                return true;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r26469 r26567  
    12351235}
    12361236
    1237 void VBoxConsoleWnd::onDisplayResize (ulong aHeight, ulong aWidth)
    1238 {
    1239     if (mIsSeamless && QApplication::desktop()->availableGeometry (this).size() != QSize (aHeight, aWidth))
    1240     {
    1241         mVmSeamlessAction->setChecked (false);
    1242         /* should be cleared already, but just in case */
    1243         if (mIsSeamless)
    1244             toggleFullscreenMode (false, true);
     1237void VBoxConsoleWnd::onDisplayResize (ulong aWidth, ulong aHeight)
     1238{
     1239    if (mIsSeamless)
     1240    {
     1241        const QRect & geo = QApplication::desktop()->availableGeometry (this);
     1242        int dW = geo.width() - (int)aWidth;
     1243        int dH = geo.height() - (int)aHeight;
     1244        if (RT_ABS (dW) > 16 || RT_ABS (dH) > 16)
     1245        {
     1246                        mVmSeamlessAction->setChecked (false);
     1247                        /* should be cleared already, but just in case */
     1248                        if (mIsSeamless)
     1249                                toggleFullscreenMode (false, true);
     1250        }
    12451251    }
    12461252}
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.h

    r25583 r26567  
    113113
    114114    /* informs that the guest display is resized */
    115     void onDisplayResize (ulong aHeight, ulong aWidth);
     115    void onDisplayResize (ulong aWidth, ulong aHeight);
    116116
    117117#ifdef VBOX_WITH_VIDEOHWACCEL
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