VirtualBox

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


Ignore:
Timestamp:
Sep 11, 2007 11:29:43 AM (17 years ago)
Author:
vboxsync
Message:

User has created the ticket about VM loaded in minimized window state:
http://www.virtualbox.org/ticket/664
The issue is about VM is not stores any size changes when it is in minimized mode.
This issue was presented in current implementation.
FIXED.

File:
1 edited

Legend:

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

    r4676 r4701  
    10651065
    10661066            if (!mManualResize  &&
    1067                 (windowState() & (WindowMaximized | WindowMinimized |
    1068                                   WindowFullScreen)) == 0)
     1067                (windowState() & WindowMaximized) == 0)
    10691068            {
    10701069                normal_size = re->size();
     
    20992098        setMaximumSize (QSize (QWIDGETSIZE_MAX, QWIDGETSIZE_MAX));
    21002099
    2101         /* restore previous position and size */
     2100        /* check if we are maximized: seamless on some wm == maximized */
    21022101        bool is_max = isMaximized();
     2102
     2103        /* restore previous position */
    21032104        move (normal_pos);
     2105
    21042106        if (was_max)
     2107            /* let pass one resize event with previous size */
    21052108            mAllowOneResize = true;
     2109        else
     2110            /* ensure we are waiting for the previous size */
     2111            mAwaitingSize = normal_size;
     2112
     2113        /* restore previous size */
    21062114        resize (normal_size);
    21072115        qApp->processEvents();
     
    21102118        {
    21112119            if (aSeamless && is_max)
     2120                /* if seamless == maximized do delayed maximization */
    21122121                mDoMaximize = true;
    21132122            else
     2123                /* restore maximized mode now */
    21142124                setWindowState (windowState() | WindowMaximized);
    21152125            qApp->processEvents();
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