summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-12-03 00:49:20 (GMT)
committerfluxgen <fluxgen>2003-12-03 00:49:20 (GMT)
commit6d95ba1af2fda9602a1337c371d46d45d8c4d747 (patch)
treec4019755b255b0e076d398fdaaca1a45e65a8f57 /src
parent5e9b6453f0d71c64f18e8082d53f9a42e2b3ae66 (diff)
downloadfluxbox_lack-6d95ba1af2fda9602a1337c371d46d45d8c4d747.zip
fluxbox_lack-6d95ba1af2fda9602a1337c371d46d45d8c4d747.tar.bz2
hide toolbar menu on root window click
Diffstat (limited to 'src')
-rw-r--r--src/fluxbox.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index e63a121..6d560e6 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: fluxbox.cc,v 1.202 2003/12/03 00:30:22 fluxgen Exp $ 25// $Id: fluxbox.cc,v 1.203 2003/12/03 00:49:20 fluxgen Exp $
26 26
27#include "fluxbox.hh" 27#include "fluxbox.hh"
28 28
@@ -983,6 +983,14 @@ void Fluxbox::handleButtonEvent(XButtonEvent &be) {
983 screen->slit()->menu().hide(); 983 screen->slit()->menu().hide();
984#endif // SLIT 984#endif // SLIT
985 985
986#ifdef USE_TOOLBAR
987 // hide toolbar that matches screen
988 for (int toolbar = 0; toolbar < m_toolbars.size(); ++toolbar) {
989 if (&(m_toolbars[toolbar]->screen()) == screen)
990 m_toolbars[toolbar]->menu().hide();
991 }
992#endif // USE_TOOLBAR
993
986 if (be.button == 1) { 994 if (be.button == 1) {
987 if (! screen->isRootColormapInstalled()) 995 if (! screen->isRootColormapInstalled())
988 screen->imageControl().installRootColormap(); 996 screen->imageControl().installRootColormap();