diff options
-rw-r--r-- | src/ToolFactory.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ToolFactory.cc b/src/ToolFactory.cc index 522c339..5383ed2 100644 --- a/src/ToolFactory.cc +++ b/src/ToolFactory.cc | |||
@@ -1,5 +1,5 @@ | |||
1 | // ToolFactory.cc for Fluxbox | 1 | // ToolFactory.cc for Fluxbox |
2 | // Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net) | 2 | // Copyright (c) 2003-2004 Henrik Kinnunen (fluxgen at users.sourceforge.net) |
3 | // | 3 | // |
4 | // Permission is hereby granted, free of charge, to any person obtaining a | 4 | // Permission is hereby granted, free of charge, to any person obtaining a |
5 | // copy of this software and associated documentation files (the "Software"), | 5 | // copy of this software and associated documentation files (the "Software"), |
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: ToolFactory.cc,v 1.2 2003/12/04 23:02:23 fluxgen Exp $ | 22 | // $Id: ToolFactory.cc,v 1.3 2004/01/11 16:09:50 fluxgen Exp $ |
23 | 23 | ||
24 | #include "ToolFactory.hh" | 24 | #include "ToolFactory.hh" |
25 | 25 | ||
@@ -48,7 +48,7 @@ class ShowMenuAboveToolbar: public FbTk::Command { | |||
48 | public: | 48 | public: |
49 | explicit ShowMenuAboveToolbar(Toolbar &tbar):m_tbar(tbar) { } | 49 | explicit ShowMenuAboveToolbar(Toolbar &tbar):m_tbar(tbar) { } |
50 | void execute() { | 50 | void execute() { |
51 | 51 | m_tbar.screen().hideMenus(); | |
52 | // get last button pos | 52 | // get last button pos |
53 | const XEvent &event = Fluxbox::instance()->lastEvent(); | 53 | const XEvent &event = Fluxbox::instance()->lastEvent(); |
54 | int x = event.xbutton.x_root - (m_tbar.menu().width() / 2); | 54 | int x = event.xbutton.x_root - (m_tbar.menu().width() / 2); |