aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.cc
diff options
context:
space:
mode:
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);