VirtualBox

Changeset 62256 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 14, 2016 2:29:31 PM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8461: X11: Runtime UI: Avoid touching menu-bar visibility on Unity (Compiz), that provokes duplicated menu-bar.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r62227 r62256  
    130130void UIMachineWindowNormal::sltHandleMenuBarConfigurationChange(const QString &strMachineID)
    131131{
     132# ifdef VBOX_WS_X11
     133    /* We should skip that stuff on Unity (Compiz) to avoid duplicated menu-bar: */
     134    if (vboxGlobal().typeOfWindowManager() == X11WMType_Compiz)
     135        return;
     136# endif /* VBOX_WS_X11 */
     137
    132138    /* Skip unrelated machine IDs: */
    133139    if (vboxGlobal().managedVMUuid() != strMachineID)
     
    348354    /* Load GUI customizations: */
    349355    {
    350 #ifndef VBOX_WS_MAC
     356#if   defined(VBOX_WS_MAC)
     357        /* Nothing for Mac OS X. */
     358#elif defined(VBOX_WS_WIN)
    351359        /* Update menu-bar visibility: */
    352360        menuBar()->setVisible(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility)->isChecked());
    353 #endif /* !VBOX_WS_MAC */
     361#elif defined(VBOX_WS_X11)
     362        /* We should skip that stuff on Unity (Compiz) to avoid duplicated menu-bar: */
     363        if (vboxGlobal().typeOfWindowManager() != X11WMType_Compiz)
     364        {
     365            /* Update menu-bar visibility: */
     366            menuBar()->setVisible(actionPool()->action(UIActionIndexRT_M_View_M_MenuBar_T_Visibility)->isChecked());
     367        }
     368#else
     369# warning "port me!"
     370#endif
    354371        /* Update status-bar visibility: */
    355372        statusBar()->setVisible(actionPool()->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->isChecked());
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