Changeset 57045 in vbox for trunk/src/VBox
- Timestamp:
- Jul 21, 2015 4:20:28 PM (9 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r57015 r57045 3319 3319 1 /* Source indication (1 = normal application) */); 3320 3320 } 3321 3322 /* static */3323 void VBoxGlobal::setTransientFor(QWidget *pWidget, QWidget *pPropWidget)3324 {3325 XSetTransientForHint(pWidget->x11Info().display(),3326 pWidget->window()->winId(),3327 pPropWidget->window()->winId());3328 }3329 3321 #endif /* Q_WS_X11 */ 3330 3322 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r57015 r57045 361 361 /** X11: Performs mapping of the passed @a pWidget to host-screen with passed @a uScreenId. */ 362 362 static bool setFullScreenMonitorX11(QWidget *pWidget, ulong uScreenId); 363 /** X11: Ensures @a pPropWidget become transient for the @a pWidget. */364 static void setTransientFor(QWidget *pWidget, QWidget *pPropWidget);365 363 #endif /* Q_WS_X11 */ 366 364 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r57043 r57045 249 249 AssertPtrReturnVoid(m_pMiniToolBar); 250 250 { 251 #ifdef Q_WS_X11252 /* Make sure mini-toolbar is always-on-top of machine-window: */253 VBoxGlobal::setTransientFor(m_pMiniToolBar, this);254 #endif /* Q_WS_X11 */255 251 /* Configure mini-toolbar: */ 256 252 m_pMiniToolBar->addMenus(actionPool()->menus()); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r57043 r57045 131 131 AssertPtrReturnVoid(m_pMiniToolBar); 132 132 { 133 #ifdef Q_WS_X11134 /* Make sure mini-toolbar is always-on-top of machine-window: */135 VBoxGlobal::setTransientFor(m_pMiniToolBar, this);136 #endif /* Q_WS_X11 */137 133 /* Configure mini-toolbar: */ 138 134 m_pMiniToolBar->addMenus(actionPool()->menus());
Note:
See TracChangeset
for help on using the changeset viewer.