VirtualBox

Changeset 64643 in vbox for trunk


Ignore:
Timestamp:
Nov 10, 2016 4:02:59 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:5978: X11: Disable Unity/Compiz workaround for UIMiniToolBar in case of seamless geometry is used, but still use for full-screen geometry. With Qt 5.6.1 that caused regression.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.cpp

    r64642 r64643  
    391391
    392392/* static */
    393 Qt::WindowFlags UIMiniToolBar::defaultWindowFlags()
    394 {
     393Qt::WindowFlags UIMiniToolBar::defaultWindowFlags(GeometryType geometryType)
     394{
     395    /* Not everywhere: */
     396    Q_UNUSED(geometryType);
     397
    395398#ifdef VBOX_WS_X11
    396399    /* Depending on current WM: */
    397400    switch (vboxGlobal().typeOfWindowManager())
    398401    {
    399         /* Frameless top-level window for Unity, issues with tool window there.. */
    400         case X11WMType_Compiz: return Qt::Window | Qt::FramelessWindowHint;
     402        // WORKAROUND:
     403        // Frameless top-level window for Unity(Compiz) full-screen mode,
     404        // otherwise we have Unity panel and menu-bar visible in full-screen mode.
     405        // Frameless top-level tool-window for Unity(Compiz) seamless mode,
     406        // otherwise we have Unity panel and menu-bar hidden in seamless mode.
     407        case X11WMType_Compiz: return geometryType == GeometryType_Full ?
     408                                      Qt::Window | Qt::FramelessWindowHint :
     409                                      Qt::Tool | Qt::FramelessWindowHint;
    401410        default: break;
    402411    }
     
    411420                             Qt::Alignment alignment,
    412421                             bool fAutoHide /* = true */)
    413     : QWidget(pParent, defaultWindowFlags())
     422    : QWidget(pParent, defaultWindowFlags(geometryType))
    414423    /* Variables: General stuff: */
    415424    , m_geometryType(geometryType)
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.h

    r62493 r64643  
    6767
    6868    /** Proposes default set of window flags for particular platform. */
    69     static Qt::WindowFlags defaultWindowFlags();
     69    static Qt::WindowFlags defaultWindowFlags(GeometryType geometryType);
    7070
    7171    /** Constructor, passes @a pParent to the QWidget constructor.
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