VirtualBox

Ignore:
Timestamp:
Jan 31, 2017 4:11:24 PM (8 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8636: X11: Runtime UI: Mini-toolbar: Remove the Unity full-screen workaround since it will not be necessary anymore.

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

Legend:

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

    r65548 r65549  
    401401*********************************************************************************************************************************/
    402402
    403 /* static */
    404 Qt::WindowFlags UIMiniToolBar::defaultWindowFlags(GeometryType geometryType)
    405 {
    406     /* Not everywhere: */
    407     Q_UNUSED(geometryType);
    408 
    409 #ifdef VBOX_WS_X11
    410     /* Depending on current WM: */
    411     switch (vboxGlobal().typeOfWindowManager())
    412     {
    413         // WORKAROUND:
    414         // Frameless top-level window for Unity(Compiz) full-screen mode,
    415         // otherwise we have Unity panel and menu-bar visible in full-screen mode.
    416         // Frameless top-level tool-window for Unity(Compiz) seamless mode,
    417         // otherwise we have Unity panel and menu-bar hidden in seamless mode.
    418         case X11WMType_Compiz: return geometryType == GeometryType_Full ?
    419                                       Qt::Window | Qt::FramelessWindowHint :
    420                                       Qt::Tool | Qt::FramelessWindowHint;
    421         default: break;
    422     }
    423 #endif /* VBOX_WS_X11 */
    424 
    425     /* Frameless tool window by default: */
    426     return Qt::Tool | Qt::FramelessWindowHint;
    427 }
    428 
    429403UIMiniToolBar::UIMiniToolBar(QWidget *pParent,
    430404                             GeometryType geometryType,
    431405                             Qt::Alignment alignment,
    432406                             bool fAutoHide /* = true */)
    433     : QWidget(pParent, defaultWindowFlags(geometryType))
     407    : QWidget(pParent, Qt::Tool | Qt::FramelessWindowHint)
    434408    /* Variables: General stuff: */
    435409    , m_pParent(pParent)
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.h

    r65547 r65549  
    6666
    6767public:
    68 
    69     /** Proposes default set of window flags for particular platform. */
    70     static Qt::WindowFlags defaultWindowFlags(GeometryType geometryType);
    7168
    7269    /** 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