VirtualBox

Changeset 53364 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 20, 2014 5:22:31 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Do not normalize window in case if NotifyChange event came to current resolution.

File:
1 edited

Legend:

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

    r53363 r53364  
    214214    if (uisession()->isScreenVisible(m_uScreenId))
    215215    {
     216        /* Check if that notify-change brings actual resize-event: */
     217        const bool fActualResize = frameBuffer()->width() != iWidth ||
     218                                   frameBuffer()->height() != iHeight;
     219
    216220        // TODO: Move to appropriate place!
    217221        /* Adjust 'scale' mode for current machine-view size: */
     
    241245            machineWindow()->centralWidget()->update();
    242246
    243             /* Normalize machine-window geometry: */
    244             if (visualStateType() == UIVisualStateType_Normal)
     247            /* Normalize 'normal' machine-window geometry if necessary: */
     248            if (visualStateType() == UIVisualStateType_Normal && fActualResize)
    245249                machineWindow()->normalizeGeometry(true /* adjust position */);
    246250        }
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