VirtualBox

Changeset 64651 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 11, 2016 3:58:27 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8636: UIDesktopWidgetWatchdog: Sane defaults for fallback mechanism presented in r111855. Heavy loaded hosts can postpone maximization for more than 5 seconds.

File:
1 edited

Legend:

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

    r64628 r64651  
    109109void UIInvisibleWindow::sltFallback()
    110110{
     111    /* Sanity check for fallback geometry: */
     112    QRect fallbackGeometry(x(), y(), width(), height());
     113    if (   fallbackGeometry.width() <= 1
     114        || fallbackGeometry.height() <= 1)
     115        fallbackGeometry = gpDesktop->screenGeometry(m_iHostScreenIndex);
    111116    LogRel(("GUI: UIInvisibleWindow::sltFallback: %s event haven't came. "
    112117            "Screen: %d, work area: %dx%d x %dx%d\n",
    113118            !m_fMoveCame ? "Move" : !m_fResizeCame ? "Resize" : "Some",
    114             m_iHostScreenIndex, x(), y(), width(), height()));
    115     emit sigHostScreenAvailableGeometryCalculated(m_iHostScreenIndex, QRect(x(), y(), width(), height()));
     119            m_iHostScreenIndex, fallbackGeometry.x(), fallbackGeometry.y(), fallbackGeometry.width(), fallbackGeometry.height()));
     120    emit sigHostScreenAvailableGeometryCalculated(m_iHostScreenIndex, fallbackGeometry);
    116121}
    117122
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