- Timestamp:
- Nov 10, 2016 4:02:59 PM (8 years ago)
- 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 391 391 392 392 /* static */ 393 Qt::WindowFlags UIMiniToolBar::defaultWindowFlags() 394 { 393 Qt::WindowFlags UIMiniToolBar::defaultWindowFlags(GeometryType geometryType) 394 { 395 /* Not everywhere: */ 396 Q_UNUSED(geometryType); 397 395 398 #ifdef VBOX_WS_X11 396 399 /* Depending on current WM: */ 397 400 switch (vboxGlobal().typeOfWindowManager()) 398 401 { 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; 401 410 default: break; 402 411 } … … 411 420 Qt::Alignment alignment, 412 421 bool fAutoHide /* = true */) 413 : QWidget(pParent, defaultWindowFlags( ))422 : QWidget(pParent, defaultWindowFlags(geometryType)) 414 423 /* Variables: General stuff: */ 415 424 , m_geometryType(geometryType) -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIMiniToolBar.h
r62493 r64643 67 67 68 68 /** Proposes default set of window flags for particular platform. */ 69 static Qt::WindowFlags defaultWindowFlags( );69 static Qt::WindowFlags defaultWindowFlags(GeometryType geometryType); 70 70 71 71 /** Constructor, passes @a pParent to the QWidget constructor.
Note:
See TracChangeset
for help on using the changeset viewer.