diff options
author | Thomas Lübking <thomas.luebking@gmail.com> | 2016-09-03 20:35:38 (GMT) |
---|---|---|
committer | Thomas Lübking <thomas.luebking@gmail.com> | 2016-09-03 22:09:40 (GMT) |
commit | 36993a80f4a246456429932abf596f2d2ef4b89d (patch) | |
tree | 7e0924770df042e097113546f1ab5a332ce08c85 /src/IconbarTool.cc | |
parent | 6c2641404a62c55a231f8004e237aca459501309 (diff) | |
download | fluxbox-36993a80f4a246456429932abf596f2d2ef4b89d.zip fluxbox-36993a80f4a246456429932abf596f2d2ef4b89d.tar.bz2 |
hide menus when clicking title or toolbar
BUG: 1149
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r-- | src/IconbarTool.cc | 2 |
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> { | |||
194 | public: | 194 | public: |
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> { | |||
206 | public: | 207 | public: |
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(); |