aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-01-11 16:08:57 (GMT)
committerfluxgen <fluxgen>2004-01-11 16:08:57 (GMT)
commitbe2f29dee6e33ce53a1e6a243273d977dfcb4595 (patch)
tree35ee5bbc9be7667233936d7e65315334069cc99e /src/Toolbar.cc
parent978b72ca6fee7eed2085107110ff3ac613b44a04 (diff)
downloadfluxbox_pavel-be2f29dee6e33ce53a1e6a243273d977dfcb4595.zip
fluxbox_pavel-be2f29dee6e33ce53a1e6a243273d977dfcb4595.tar.bz2
hide menus on click
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 732be39..e804aed 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -1,5 +1,5 @@
1// Toolbar.cc for Fluxbox 1// Toolbar.cc for Fluxbox
2// Copyright (c) 2002 - 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net) 2// Copyright (c) 2002 - 2004 Henrik Kinnunen (fluxgen at users.sourceforge.net)
3// 3//
4// Toolbar.cc for Blackbox - an X11 Window manager 4// Toolbar.cc for Blackbox - an X11 Window manager
5// Copyright (c) 1997 - 2000 Brad Hughes (bhughes at tcac.net) 5// Copyright (c) 1997 - 2000 Brad Hughes (bhughes at tcac.net)
@@ -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: Toolbar.cc,v 1.134 2003/12/20 19:05:42 fluxgen Exp $ 25// $Id: Toolbar.cc,v 1.135 2004/01/11 16:08:57 fluxgen Exp $
26 26
27#include "Toolbar.hh" 27#include "Toolbar.hh"
28 28
@@ -471,6 +471,8 @@ void Toolbar::buttonPressEvent(XButtonEvent &be) {
471 if (be.button != 3) 471 if (be.button != 3)
472 return; 472 return;
473 473
474 screen().hideMenus();
475
474 if (! menu().isVisible()) { 476 if (! menu().isVisible()) {
475 int x, y; 477 int x, y;
476 478