On Debian Jessie and Fluxbox 1.3.5, the behaviour I am looking for is: Every time I click on desktop, if a RootMenu is not already there, one should be drawn. If a RootMenu is already there, it should disappear. For this purpose, I added this line to .fluxbox/keys
file:
OnDesktop Mouse1 :If {Some Matches ((@Role="fluxbox-menu")} {HideMenus} {RootMenu}
after commenting out other mouse related bindings.
However, pressing Mouse1 on the desktop produces no effect, log file is clean and if I bind RootMenu to some other keys simply using
OnDesktop Mouse3 :RootMenu
RootMenu does appears correctly (so, nothing wrong with that).
Any idea why this is happening? More importantly, does the keys
file not permit this kind of "complex" behaviour?