VirtualBox

Ignore:
Timestamp:
Jul 14, 2015 2:18:11 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: X11: Helpers cleanup/rework (step 3): Reworking to detect more than one X11 WM types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r55678 r56929  
    3535#include "UIMediumDefs.h"
    3636#include "VBoxGlobalSettings.h"
     37#ifdef Q_WS_X11
     38# include "VBoxX11Helper.h"
     39#endif /* Q_WS_X11 */
    3740
    3841/* COM includes: */
     
    149152    QList<QUrl> &argUrlList() { return m_ArgUrlList; }
    150153
    151     bool isKWinManaged() const { return mIsKWinManaged; }
     154#ifdef Q_WS_X11
     155    /** X11: Returns the type of the Window Manager we are running under. */
     156    X11WMType typeOfWindowManager() const { return m_enmWindowManagerType; }
     157#endif /* Q_WS_X11 */
    152158
    153159    /** Returns whether we should restore current snapshot before VM started. */
     
    480486    mutable QReadWriteLock m_mediumEnumeratorDtorRwLock;
    481487
    482     bool mIsKWinManaged;
     488#ifdef Q_WS_X11
     489    /** X11: Holds the type of the Window Manager we are running under. */
     490    X11WMType m_enmWindowManagerType;
     491#endif /* Q_WS_X11 */
    483492
    484493    /** The --aggressive-caching / --no-aggressive-caching option. */
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