all repos — fluxbox @ 92d1e5fcfb5a44d6d4cfea7fdfa34bf659a377ad

custom fork of the fluxbox windowmanager

don't allow empty root menu
Mark Tiefenbruck mark@fluxbox.org
commit

92d1e5fcfb5a44d6d4cfea7fdfa34bf659a377ad

parent

f552b328bc07c3b842777d5c449febb58cd817bb

2 files changed, 4 insertions(+), 1 deletions(-)

jump to
M ChangeLogChangeLog

@@ -1,5 +1,8 @@

(Format: Year/Month/Day) Changes for 1.0.1: +*08/04/30: + * Don't allow empty root menu (Mark) + Screen.cc *08/04/27: * Added SimpleObserver class. (Henrik) SimpleObserver.hh, SendToMenu.hh/cc, Toolbar.hh/cc,
M src/Screen.ccsrc/Screen.cc

@@ -1522,7 +1522,7 @@ screenNumber(), true));

} - if (m_rootmenu.get() == 0) { + if (m_rootmenu.get() == 0 || m_rootmenu->numberOfItems() == 0) { _FB_USES_NLS; m_rootmenu.reset(createMenu(_FB_XTEXT(Menu, DefaultRootMenu, "Fluxbox default menu", "Title of fallback root menu"))); FbTk::RefCount<FbTk::Command<void> > restart_fb(FbTk::CommandParser<void>::instance().parse("restart"));