Reason: for items in global menu, the wxUpdateUIEvent is never sent, even when the global menu is displayed.
Therefore, if a submenu is disabled/enabled only by the wxUpdateUIEvent corresponding to its own menu ID, it will be never disabled/enabled)
Of course, if a submenu is disabled/enabled by the wxUpdateUIEvent code corresponding to a tool ID (for instance a tool in a toolbar, it will be disabled/enabled.
Unity creates really many specific issues, which look like bugs in the WM.
It happens also on Ubuntu 14.10, with Unity.
Reason: for items in global menu, the wxUpdateUIEvent is never sent, even when the global menu is displayed.
Therefore, if a submenu is disabled/enabled only by the wxUpdateUIEvent corresponding to its own menu ID, it will be never disabled/enabled)
Of course, if a submenu is disabled/enabled by the wxUpdateUIEvent code corresponding to a tool ID (for instance a tool in a toolbar, it will be disabled/enabled.
Unity creates really many specific issues, which look like bugs in the WM.