VirtualBox

Changeset 2221 in vbox for trunk


Ignore:
Timestamp:
Apr 19, 2007 12:50:09 PM (18 years ago)
Author:
vboxsync
Message:

FE/Qt: Rolled back changeset:20385 because the resize deadlocks have been eliminated now.

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

Legend:

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

    r2077 r2221  
    203203    bool ignore_mainwnd_resize : 1;
    204204    bool autoresize_guest : 1;
    205     QSize autoresize_guest_hint;
    206205
    207206    bool mfNumLock : 1;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp

    r2077 r2221  
    823823                /* report to the VM thread that we finished resizing */
    824824                cconsole.GetDisplay().ResizeCompleted();
    825 
    826                 /* reset the last auto-resize hint to confirm the guest has
    827                  * accepted it (which may not always be the case if a
    828                  * "natural" guest resize occasionally happened right after
    829                  * we've sent a resize hint) */
    830                 autoresize_guest_hint = QSize();
    831825
    832826                ignore_mainwnd_resize = false;
     
    28052799    if (autoresize_guest)
    28062800    {
    2807         if (!autoresize_guest_hint.isValid())
    2808         {
    2809             /* Get the available size for the guest display.  We assume here
    2810              * that the centralWidget() contains this view only and gives it
    2811              * all available space. */
    2812             QSize sz (mainwnd->centralWidget()->size());
    2813             sz -= QSize (frameWidth() * 2, frameWidth() * 2);
    2814             LogFlowFunc (("Will suggest (%d,%d)\n", sz.width(), sz.height()));
    2815 
    2816             autoresize_guest_hint = sz;
    2817             cconsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0);
    2818         }
    2819         else
    2820         {
    2821             /* A previous resize hint has not been served yet (at least we
    2822              * didn't get ResizeEvent from the guest). */
    2823             LogFlowFunc (("Guest is ignoring our last resize hint (%d,%d), "
    2824                           "don't suggest any more.\n",
    2825                           autoresize_guest_hint.width(),
    2826                           autoresize_guest_hint.height()));
    2827         }
    2828     }
    2829 }
    2830 
     2801        /* Get the available size for the guest display.
     2802         * We assume here that the centralWidget() contains this view only
     2803         * and gives it all available space. */
     2804        QSize sz (mainwnd->centralWidget()->size());
     2805        sz -= QSize (frameWidth() * 2, frameWidth() * 2);
     2806        LogFlowFunc (("Will suggest %d,%d\n", sz.width(), sz.height()));
     2807
     2808        cconsole.GetDisplay().SetVideoModeHint (sz.width(), sz.height(), 0);
     2809    }
     2810}
     2811
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