The attached branch assumes that an application either exports its full menu via dbusmenu, or via both an application and a window menu. This is true for evince (exports only and appmenu but a full dbusmenu), but not for many other applications (for example LibreOffice).
The attached branch assumes that an application either exports its full menu via dbusmenu, or via both an application and a window menu. This is true for evince (exports only and appmenu but a full dbusmenu), but not for many other applications (for example LibreOffice).
This issue goes away once bug #1026088 is fixed.