all repos — fluxbox @ 63aaecd20cbe3799581b2846ef810a3593a78f26

custom fork of the fluxbox windowmanager

fixed "iconify" menu item
Mark Tiefenbruck mark@fluxbox.org
commit

63aaecd20cbe3799581b2846ef810a3593a78f26

parent

0d544fbe4ff6b8d630a4249f800459f03497dfa5

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

jump to
M src/BoolMenuItem.hhsrc/BoolMenuItem.hh

@@ -65,15 +65,20 @@ FbTk::RefCount<FbTk::Command> &cmd):

FbTk::MenuItem(label, cmd), m_res(res) { FbTk::MenuItem::setSelected(*m_res); setToggleItem(true); + setCloseOnClick(false); } BoolResMenuItem(const FbTk::FbString &label, Type &res): FbTk::MenuItem(label), m_res(res) { FbTk::MenuItem::setSelected(*m_res); setToggleItem(true); + setCloseOnClick(false); } bool isSelected() const { return *m_res; } // toggle state - void click(int button, int time) { setSelected(!*m_res); FbTk::MenuItem::click(button, time); } + void click(int button, int time, unsigned int mods) { + setSelected(!*m_res); + FbTk::MenuItem::click(button, time, mods); + } void setSelected(bool value) { m_res = value; FbTk::MenuItem::setSelected(*m_res);