all repos — fluxbox @ 6d95ba1af2fda9602a1337c371d46d45d8c4d747

custom fork of the fluxbox windowmanager

hide toolbar menu on root window click
fluxgen fluxgen
commit

6d95ba1af2fda9602a1337c371d46d45d8c4d747

parent

5e9b6453f0d71c64f18e8082d53f9a42e2b3ae66

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

jump to
M src/fluxbox.ccsrc/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())