all repos — fluxbox @ 08601c23d3960e724223767f0ad5460287ddfd9d

custom fork of the fluxbox windowmanager

enabled MenuItems / Separators are not clickable and the same logic should
apply to keys.
mathias mathias
commit

08601c23d3960e724223767f0ad5460287ddfd9d

parent

e108c5cac0e12c323b4a730201748ee96455125e

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

jump to
M src/FbTk/Menu.ccsrc/FbTk/Menu.cc

@@ -830,10 +830,9 @@

if (index >= menuitems.size()) return false; const MenuItem *item = find(index); - if (!item) - return false; - - return (typeid(*item) != typeid(FbTk::MenuSeparator)); + return (!item || + (typeid(*item) == typeid(FbTk::MenuSeparator)) || + !item->isEnabled()) ? false : true; }