diff options
author | markt <markt> | 2007-12-11 19:29:00 (GMT) |
---|---|---|
committer | markt <markt> | 2007-12-11 19:29:00 (GMT) |
commit | 474e2017454d3c6492eb9f428aee039d36d76e05 (patch) | |
tree | cae44371e3dc31d1cb3aafdd2fbf83a26527e540 /src/IconbarTool.cc | |
parent | 38877987c43857f79481bedeb036380b32019a0f (diff) | |
download | fluxbox-474e2017454d3c6492eb9f428aee039d36d76e05.zip fluxbox-474e2017454d3c6492eb9f428aee039d36d76e05.tar.bz2 |
only allow one open menu at a time
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r-- | src/IconbarTool.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc index 625d358..2574762 100644 --- a/src/IconbarTool.cc +++ b/src/IconbarTool.cc | |||
@@ -217,10 +217,9 @@ public: | |||
217 | void execute() { | 217 | void execute() { |
218 | // hide the menu if it's already showing for this FluxboxWindow | 218 | // hide the menu if it's already showing for this FluxboxWindow |
219 | if (m_win.menu().isVisible() && WindowCmd<void>::window() == &m_win) { | 219 | if (m_win.menu().isVisible() && WindowCmd<void>::window() == &m_win) { |
220 | m_win.screen().hideMenus(); | 220 | m_win.menu().hide(); |
221 | return; | 221 | return; |
222 | } | 222 | } |
223 | m_win.screen().hideMenus(); | ||
224 | // get last button pos | 223 | // get last button pos |
225 | const XEvent &event = Fluxbox::instance()->lastEvent(); | 224 | const XEvent &event = Fluxbox::instance()->lastEvent(); |
226 | int x = event.xbutton.x_root - (m_win.menu().width() / 2); | 225 | int x = event.xbutton.x_root - (m_win.menu().width() / 2); |