VirtualBox

Ignore:
Timestamp:
Dec 14, 2008 3:44:59 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4-OSX: Fixed position/size of the VM window after a VM snapshot is
restored which was in seamless mode on save (#3306).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxConsoleWnd.h

    r15185 r15467  
    7474    void refreshView();
    7575
     76    bool isWindowMaximized() const
     77    {
     78#ifdef Q_WS_MAC
     79        /* On Mac OS X we didn't really jump to the fullscreen mode but
     80         * maximize the window. This situation has to be considered when
     81         * checking for maximized or fullscreen mode. */
     82        return !(isTrueSeamless()) && QMainWindow::isMaximized();
     83#else /* Q_WS_MAC */
     84        return QMainWindow::isMaximized();
     85#endif /* Q_WS_MAC */
     86    }
     87    bool isWindowFullScreen() const
     88    {
     89#ifdef Q_WS_MAC
     90        /* On Mac OS X we didn't really jump to the fullscreen mode but
     91         * maximize the window. This situation has to be considered when
     92         * checking for maximized or fullscreen mode. */
     93        return isTrueFullscreen() || isTrueSeamless();
     94#else /* Q_WS_MAC */
     95        return QMainWindow::isFullscreen();
     96#endif /* Q_WS_MAC */
     97    }
     98
    7699    bool isTrueFullscreen() const { return mIsFullscreen; }
    77100
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