VirtualBox

Changeset 29918 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 31, 2010 4:12:02 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt: New running VM core: Fix superfluous resize-event on powering-on VM for X11.

File:
1 edited

Legend:

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

    r29825 r29918  
    618618
    619619#ifdef Q_WS_X11
    620     /* Processing pseudo resize-event to synchronize frame-buffer with stored framebuffer size: */
    621     QSize size = guestSizeHint();
    622     UIResizeEvent event(FramebufferPixelFormat_Opaque, NULL, 0, 0, size.width(), size.height());
    623     frameBuffer()->resizeEvent(&event);
     620    /* Processing pseudo resize-event to synchronize frame-buffer
     621     * with stored framebuffer size in case of machine state was 'saved': */
     622    if (session().GetMachine().GetState() == KMachineState_Saved)
     623    {
     624        QSize size = guestSizeHint();
     625        UIResizeEvent event(FramebufferPixelFormat_Opaque, NULL, 0, 0, size.width(), size.height());
     626        frameBuffer()->resizeEvent(&event);
     627    }
    624628#endif /* Q_WS_X11 */
    625629}
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