aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r--src/IconbarTool.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc
index 128b71e..84c91ef 100644
--- a/src/IconbarTool.cc
+++ b/src/IconbarTool.cc
@@ -194,6 +194,7 @@ class ShowMenu: public FbTk::Command<void> {
194public: 194public:
195 explicit ShowMenu(FluxboxWindow &win):m_win(win) { } 195 explicit ShowMenu(FluxboxWindow &win):m_win(win) { }
196 void execute() { 196 void execute() {
197 FbTk::Menu::hideShownMenu();
197 // get last button pos 198 // get last button pos
198 const XEvent &e = Fluxbox::instance()->lastEvent(); 199 const XEvent &e = Fluxbox::instance()->lastEvent();
199 m_win.popupMenu(e.xbutton.x_root, e.xbutton.y_root); 200 m_win.popupMenu(e.xbutton.x_root, e.xbutton.y_root);
@@ -206,6 +207,7 @@ class FocusCommand: public FbTk::Command<void> {
206public: 207public:
207 explicit FocusCommand(Focusable &win): m_win(win) { } 208 explicit FocusCommand(Focusable &win): m_win(win) { }
208 void execute() { 209 void execute() {
210 FbTk::Menu::hideShownMenu();
209 // this needs to be a local variable, as this object could be destroyed 211 // this needs to be a local variable, as this object could be destroyed
210 // if the workspace is changed. 212 // if the workspace is changed.
211 FluxboxWindow *fbwin = m_win.fbwindow(); 213 FluxboxWindow *fbwin = m_win.fbwindow();