VirtualBox

Changeset 2835 in vbox


Ignore:
Timestamp:
May 24, 2007 10:15:27 AM (18 years ago)
Author:
vboxsync
Message:

1935: WinXP guest resolution resetted to 640x480 after startup:

Ignoring all the QT initial Resize Events before the console-window is opened to avoid processing these events as user resize events in auto-resize feature. All events after the console-window is opened are processed as normal.

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

Legend:

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

    r2764 r2835  
    9191    void onFullscreenChange (bool on);
    9292
     93    void onViewOpened();
     94
    9395    void fixModifierState (LONG *codes, uint *count);
    9496
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp

    r2764 r2835  
    457457    , hostkey_pressed (false)
    458458    , hostkey_alone (false)
    459     , ignore_mainwnd_resize (false)
     459    , ignore_mainwnd_resize (true)
    460460    , mAutoresizeGuest (false)
    461461    , mIsAdditionsActive (false)
     
    788788{
    789789    /* Nothing to do here so far */
     790}
     791
     792/**
     793 *  Notify the console scroll-view about the console-window is opened.
     794 */
     795void VBoxConsoleView::onViewOpened()
     796{
     797    /* Variable <ignore_mainwnd_resize> is initially "true" to ignore QT
     798     * initial resize event in case of auto-resize feature is on.
     799     * Currently initial resize event is already processed, so switching
     800     * the ignore_mainwnd_resize to "false" to process all further resize
     801     * events as user resize events. */
     802    ignore_mainwnd_resize = false;
    790803}
    791804
     
    28732886}
    28742887
    2875 /** 
     2888/**
    28762889 *  Sets the the minimum size restriction depending on the auto-resize feature
    28772890 *  state and the current rendering mode.
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r2801 r2835  
    10601060    LogFlowFuncEnter();
    10611061
     1062    /* Notify the console scroll-view about the console-window is opened. */
     1063    console->onViewOpened();
     1064
    10621065    bool saved = machine_state == CEnums::Saved;
    10631066
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