all repos — fluxbox @ 1534c8d728d6fd2f97feef5e0a5f8ab294aa8639

custom fork of the fluxbox windowmanager

Consistency: alpha submenu of WindowMenu should not have title.

Signed-off-by: Tomas Janousek <tomi@nomi.cz>
Tomas Janousek tomi@nomi.cz
commit

1534c8d728d6fd2f97feef5e0a5f8ab294aa8639

parent

b61502ffbc17d51506bb274472f9bf8934319364

1 files changed, 6 insertions(+), 3 deletions(-)

jump to
M src/MenuCreator.ccsrc/MenuCreator.cc

@@ -586,11 +586,14 @@ BScreen *screen = Fluxbox::instance()->findScreen(menu.screenNumber());

if (screen == 0) return false; + FbTk::Menu *submenu = + new AlphaMenu(screen->menuTheme(), + screen->imageControl(), + *screen->layerManager().getLayer(Layer::MENU)); + submenu->disableTitle(); menu.insert(label.empty() ? _FB_XTEXT(Configmenu, Transparency, "Transparency", "Menu containing various transparency options"): label, - new AlphaMenu(screen->menuTheme(), - screen->imageControl(), - *screen->layerManager().getLayer(Layer::MENU))); + submenu); } #endif // HAVE_XRENDER } else if (type == "extramenus") {