hide toolbar menu on root window click
fluxgen fluxgen
1 files changed,
9 insertions(+),
1 deletions(-)
jump to
M
src/fluxbox.cc
→
src/fluxbox.cc
@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.202 2003/12/03 00:30:22 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.203 2003/12/03 00:49:20 fluxgen Exp $ #include "fluxbox.hh"@@ -982,6 +982,14 @@ // hide slit menu
if (screen->slit()) screen->slit()->menu().hide(); #endif // SLIT + +#ifdef USE_TOOLBAR + // hide toolbar that matches screen + for (int toolbar = 0; toolbar < m_toolbars.size(); ++toolbar) { + if (&(m_toolbars[toolbar]->screen()) == screen) + m_toolbars[toolbar]->menu().hide(); + } +#endif // USE_TOOLBAR if (be.button == 1) { if (! screen->isRootColormapInstalled())