aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-12-11 19:29:00 (GMT)
committermarkt <markt>2007-12-11 19:29:00 (GMT)
commit474e2017454d3c6492eb9f428aee039d36d76e05 (patch)
treecae44371e3dc31d1cb3aafdd2fbf83a26527e540 /src/IconbarTool.cc
parent38877987c43857f79481bedeb036380b32019a0f (diff)
downloadfluxbox-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.cc3
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);